Question
Buffer Flush
So, I'm trying to play streaming video from Dlash Media
Server.
nc = new NetConnection();
nc.connect('rtmp://mysite/myapp');
ns = new NetStream(nc);
var startBufferLength = 2;
ns.setBufferTime(startBufferLength);
// create and set sound object
var snd = this.createEmptyMovieClip("snd5", this.getNextHighestDepth());
snd.attachAudio(ns);
audio = new Sound(snd);
audio.setVolume(80);
// attach videodisplay
videoDisplay.attachVideo(ns);
videoDisplay.smoothing = true;
ns.play("video",0);
It's starts playing but near the end of the clip when in buffer is less than 2 seconds but data don't streams any more, buffer flushes and the data that is in the buffer didn't display. Help me please what to do to display this last seconds.
nc = new NetConnection();
nc.connect('rtmp://mysite/myapp');
ns = new NetStream(nc);
var startBufferLength = 2;
ns.setBufferTime(startBufferLength);
// create and set sound object
var snd = this.createEmptyMovieClip("snd5", this.getNextHighestDepth());
snd.attachAudio(ns);
audio = new Sound(snd);
audio.setVolume(80);
// attach videodisplay
videoDisplay.attachVideo(ns);
videoDisplay.smoothing = true;
ns.play("video",0);
It's starts playing but near the end of the clip when in buffer is less than 2 seconds but data don't streams any more, buffer flushes and the data that is in the buffer didn't display. Help me please what to do to display this last seconds.
