PDA

View Full Version : FLV video playback with duration time


gvozden
12-31-2006, 10:40 AM
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/)

_this
12-31-2006, 12:35 PM
Great
:thumb2:

mayur.GTL
01-02-2007, 05:44 AM
Thanking you, things have come at Very appropriate time..
I am also making some same component, of a video player (.fly) and have been stuck up at mainly at progress bar of movie.

I think this will be help full. I will go through and let you know.
If I feel, I will mail you personaly, also. (If you allow.)

Happy New Year.
Thanking in advance..

Dutchy
01-02-2007, 07:47 AM
Hi,

Why not use 'Stream.onMetaData' ? You don't need the FMS for that...
But this can be usefull if you want a list with duration of the FLV files.

Dutchy

gvozden
01-02-2007, 09:26 AM
heh
THNX
I'll leave this here because it can metter, but Stream.onMetaData does work for single file :D

I've put Stream.onMetaData example to, now two usefull things ;
ZIP (http://www.pleasures.co.yu/_gvozden/flv/flv2.zip)
EXAMPLE (does the same) (http://www.pleasures.co.yu/_gvozden/flv/index2.html)

gvozden
01-03-2007, 01:07 PM
Implementing a dual-threshold buffering strategy in Flash Media Server (http://www.adobe.com/devnet/flashmediaserver/articles/fms_dual_buffering.html)

this is dynamic buffer technology I was talking about

cyber_rio
03-21-2007, 02:10 PM
Man.. thanks for this post.. this is exactly what I am looking for but the problem is that the links don't work.... could you check this?

cheers

gvozden
03-21-2007, 04:12 PM
I updated links, thanks for reminding me ;)

MADenigma
04-06-2007, 08:35 AM
nice idea !