开发者

How can i get swf movie duration by php?

开发者 https://www.devze.com 2023-03-16 07:54 出处:网络
i need swf movie duration by php. for example i have 3 swf movie on my site, and i want to play another exactly than, when first one ends. i found a small library here

i need swf movie duration by php. for example i have 3 swf movie on my site, and i want to play another exactly than, when first one ends. i found a small library here

http://php.net/manual/en/book.swf.php

but i cant understand, is it worth? it has no documentation at all.

i want my php code to find swf movies on site, (no matter how many they will be) and play One af开发者_高级运维ter another. if php can not do this perfectly, what is another way or solution? javascript? i search google and nothing.

please help ...


The PHP extension you mention actually has some docs, even an example - but it is used to create swf animations programmatically.

To determine the length of an existing flash movie (I suppose you mean .flv since you speak about movies), I suggest you use a command line utility like extract (from libextractor):

$ LC_ALL=C extract Musik/barsandtone.flv 
format - 44100 Hz, 16-bit, stereo, MP3, 96.0000 kbps
format - 360x288, 10.00 fps, On2 TrueMotion VP6, 400.0000 kbps
duration - 6.00 s
mimetype - video/x-flv
0

精彩评论

暂无评论...
验证码 换一张
取 消