Groups | Blog | Home
all groups > flash (macromedia) > march 2004 >

flash (macromedia) : Controlling MediaPlayback component


apixel
3/12/2004 11:27:58 PM
Hello,
I'm a flash newbie. For what I am doing, the MediaPlayback component is great
except for one thing. I would like it to start playing the video once a good
portion of it has been progressively downloaded. Is there a way for me to do
this? The controller either has the option of waiting for the user to push
play, or starts playing immediately. Is there a way for me to have it appear as
paused, query how much has already been downloaded and make it play when I feel
enough has come down?
If not, I'll venture into writing my own controller and using the embedded
video instead, where I know I can ask how many seconds to preload ... but I
rather not. :-)

Thank you.

- Andres

mlangner-MMTS
3/13/2004 12:11:08 AM
You might want to take a look at the netStream class. You can then use setBufferTime, bufferLength, bufferTime and the other properties to efficiently buffer the file.

apixel
3/13/2004 12:33:59 AM
Thanks. Will I still be able to use the built in progress bar and controller, or am I on my own at this point?

AddThis Social Bookmark Button