# FLV video playback with duration time

**URL:** <https://forum.kirupa.com/t/flv-video-playback-with-duration-time/211402>\
**Category:** open source\
**Created:** [December 31, 2006, 2:40pm UTC](https://forum.kirupa.com/t/flv-video-playback-with-duration-time/211402 "2006-12-31T14:40:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gvozden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gvozden/32/1084_2.png) [@gvozden](https://forum.kirupa.com/u/gvozden)\
**Post date:** [December 31, 2006, 2:40pm UTC](https://forum.kirupa.com/t/flv-video-playback-with-duration-time/211402/1 "2006-12-31T14:40:05Z")

</div>

Here is new Tutorial which makes me very happy…  
Introduction: When Flash plays FLV file he cannot see duration of complete FLV file, except in case you use Flash Media Server. So you can imagine how tought or impossible it is to make seek bar for displaying elapsed time or controlling video time position.

EDIT :  
look few posts down and you can see you also can and better use Stream.onMetaData for single files

PHP script opens FLV file, seeks bytes at the end, extracts infromation about video duration and return to Flash information about duration of FLV movie, and from that point there is no problem  
Example is just coding one, doing some buttons, style and rest I leave it to you

also, if you do some serious application you should consider dynamic buffering technology, where buffer length and time is set dynamicly while movie is playing visitor recieve best results  
so here it is  
[EXAMPLE](http://www.pleasures.co.yu/_gvozden/flv)  
[ZIP](http://www.pleasures.co.yu/_gvozden/flv/flv.zip)  
just in same folder you unpack put FLV file named video.flv or use mine from [this addressi](http://www.pleasures.co.yu/_gvozden/flv/video.flv)  
Happy New Year !!! Wish you all the best …

more on [blogpost](http://mrsteel.wordpress.com/)
