Search code examples
flashflvnetstream

NetStream FLV movie playing way too fast


I have this little NetStream movie (which I'm not allowed to show, sorry) set up like this:

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);

flv_container.attachVideo(ns);

ns.play("introMovie.flv");

ns.onStatus = function(infoObject:Object) 
{
    movieStatus = infoObject.code;

    if (movieStatus == "NetStream.Play.Stop") 
    { 
        ns.play("repeatingMovie.flv");
    }
};

Ok, so this actually works. Only, Firefox (3.6 - 10) and Safari both play my movies way too fast! Other browsers, like Chrome play my movie as intended. Also, this only happens on my computer.

Does anyway know what the problem could be?


Solution

  • It's fixed. Adding a buffer length (any length) fixes the issue.

    ns.bufferLength = 4;