Flash Streaming video
Flash Streaming video
- Started
- Last post
- 5 Responses
- CyBrain
Is there a way in actionscript (through the netStream class maybe) to determine the length of an flv?
I'm new to streaming and I'd like to set up video controls with a scrubber to seek to different points in the video.
- orkman0
Uh, well with FLVPlayer you can do:
var totalTimer = nameOfFlvPlayer.totalTime;
- jpea0
if you're just using netstream, there's sort of a hacked together function that can read the flv's metadata:
ns['onMetaData'] = function(obj){
duration = obj.duration;
}
- mrock0
go here and try this. It's helped me a couple of times.
http://www.quip.net/blog/2007/fl…
- CyBrain0
mrock, that link is pure gold. Thanks. Kind of expands on jpea's duration code.
- mrock0
just trying to help the cause.