-
Flv stutters
Hello everyone!
I have a problem with videos stuttering when viewing my website for the first time. My site hosts many videos so I cannot preload them all at once.
I am thinking I need a code that assures that each video buffers for a few seconds as it plays.
I am open to all suggestions.
thanks in advance,
Dennis
PS
Here is the code I use to upload the video:
var vid:Video = new Video();
var nc:NetConnection = new NetConnection();
nc.connect(null);
var netStream:NetStream = new NetStream(nc);
netStream.addEventListener(NetStatusEvent.NET_STAT US, ns_onPlayStatus);
addChild(vid);
vid.attachNetStream(netStream);
netStream.play("main.flv");
-
Well you could actually preload the video, or you could just set a buffer time:
Code:
netStream.bufferTime=10; //buffers 10 seconds
-
-
video stutter
Thank you. How do I preload the video? All the references I find when I google this subject refer to preloaders not preloading video.
Thanks
Dennis
-
There is no preloading here, you start downloading (playing) the video with netStream.play(url);
You can listen for video end (NetStream.Play.Stop) if this means anything to you.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|