Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Visual and/or audio glitch when switching videos

10 replies [Last post]

I'm using a playlist and javascript to switch videos. Sometimes, more often than not, there is a visual and/or audio glitch at the beginning of the video, or a frame from the previous played video will flash on the before the new video starts. The videos are all H.264, and I've tried both mp4 wrappers and quicktime wrappers with the same result. Others have said that switching to FLV files solved the problem, but that is not an option for us.

The test site is http://www.stuckonon.com/indexD.php
You'll need to click on "Projects" at the top, and then choose "Color Correction" from the projects menu on the left. Any of the first 5 videos on the list should be good for testing. The problems arise when clicking on a new video, while another video is playing. (This test site has only been tested on Safari and Firefox on Macs)

The code I use for initializing the player looks like this:

$(document).ready(function(){
createPlayer('playerAholder','playerA','http://www.stuckonon.com/playlist/playlist_home.xml',false,'640','380','bottom');
createPlayer('playerBholder','playerB','http://www.stuckonon.com/playlist/playlist_reel.xml',true,'640','380','bottom');
homepagecaption();
projectpagecaption();
});

function createPlayer(thecontainer, theplayid, thefile, theauto, thewidth, theheight, thecontrol) {
            var flashvars = {
                    file:thefile,
                    autostart:theauto,
image:"http://www.stuckonon.com/videostill/Soo-jamboxlogo2.jpg",
controlbar:thecontrol,
skin:"http://www.stuckonon.com/JWplayer/modieus2.swf",
bufferlength:"5",
playlist:"none",
// abouttext:"Stuck On On"
            }
            var params = {
                    allowfullscreen:"true",
                    allowscriptaccess:"always"
            }
            var attributes = {
                    id:theplayid, 
                    name:theplayid
            }
            swfobject.embedSWF("http://www.stuckonon.com/JWplayer/player2.swf", thecontainer, thewidth, theheight, "9.0.115", false, flashvars, params, attributes);
};

The code for switching videos from the playlist looks like this and is called from an onclick:

function playfromlist(whichplayer2,vidnum,holderID){
whichplayer2.sendEvent('ITEM',vidnum);
};

I am using jw player v. 4.5.230 and SWFobject v. 2.2

Any advice or assistance is very much appreciated. We're trying to go live with this site as soon as possible.

thanks,
Parke

I've made it easier to see/hear the problem. At my site, when you select a video from the list on the left, you then need to click on the "play" graphic in the player. When you click, you hear and/or see the glitch I've been describing. It also happens with AAC files. (You can test it in the "Music Library" section on the Projects panel)

Any help would really really be appreciated. I've tried all sorts of different encoded techniques and apps, all with the same result. Thanks!

-Parke

I think this was fixed in a very recent release. Try v4.6.499 from the Subversion repository.

Thanks for your response. I can't seem to find 4.6.499. Is it supposed to be in the as3 folder?

I just installed the new player and, unfortunately, I'm still hearing the same glitch right when the video or audio starts to play. Any ideas? Is there a chance it's something I'm doing wrong? Could it be a problem using SWFobject 2.2 instead of 1.5? Listening to the 'music library' is maybe the easiest way to hear the problems.

--Thanks--

swfobject just embeds Flash content. It has nothing to do with the behavior of the player.

I thought I recalled seeing a changeset where this was addressed, but maybe it was this, which is a different issue http://developer.longtailvideo.com/trac/changeset/438/trunk/as3/player.swf

I think that fix is (was) part of my problem. I'm not seeing the frame flash anymore, so that's good. But the audio 'glitch' or 'pop' (of a very similar nature to the frame flash) is still showing up. -Thanks for your help!-

Hmm - I can't seem to get the video to play at all. Has this been resolved?

HELP!!!!! I'm having the same issue.

This should be fixed in 5.1. Please test this using the player at http://developer.longtailvideo.com/svn/trunk/fl5/player.swf