-
go blues !
End of Video
Does anyone know how to measue the length of a video in time ? Or any other way for that matter so that the play head can be advanbced there automatically ?
-
depands if wou work with video object or component
-
go blues !
I am hard coding and custom building everything so I am using the video object.
I have thought about this for a while and the other functions that are available, seek and time do not offer any functionality for determining total video length in frames or time. Unless there is some way to embed this information into the FLV file so that it can be read with ID3 tags or something, or a comparison with getBytesTotal for the amount frames per sec, but something on the fly would be the BEST solution .
-
ns.onMetaData = function(obj) {
_root.video_duration = obj.duration;
}
_root.video_mc.ff_mc.onRelease = function(){
seek_time = ns.time+10;
if(seek_time<_root.video_duration){
ns.seek(seek_time);
}
}
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
|