Is there a way to get the run time of a Flash video using Javascript? Any help would be greatly appreciated. Thanks
Javascript Question: Getting Run Time of Flash Video?
Collapse
X
-
are you trying to have the video time length next to it without it playing?
like on tube sites and members areas? -
Comment
-
This is more along the lines of a submission form. Select the video, the video length is read by Javascript, and is then added as a value in a form field.
Thanks fris. I'll have to keep that in my pocket as plan B and add a little AJAX voodoo to it if it comes to that.Originally posted by frisdont think so but you could use the php-ffmpeg module
<?
$movie = new ffmpeg_movie('trailer.flv');
$duration = $movie->getduration();
?>
and echo accordinglyComment
-
Now that'd be an interesting feat. Your best bet is probably to just rebuild the player, and write your JS code to do the div container replacement with ExternalInterface.call("WhateverYourRoutineIs");Comment
-
Heh, I may not be swimming in the web programming kiddie pool, but I've still got my noob floaties on. This is out of my depth. Looks like Plan B is in order. Thanks dude.Comment
-
In this case, you might make your 'submission' form use php-ffmpeg (as noted above); Just qualify the movie's content and autofill this data when it's submitted, before you do your mail() or whatever other notification you are planning to use. That'll keep people from just sending shit, but it won't help with bandwidth use/waste.Comment
-
Word. I wanted to make it all razzle-dazzle by auto-filling it right into the field as the user tends to it, and the best way is, I guess to send an asynchronous request to a little script that'll kick back the run time using ffmpeg, and then jam that shizzle in.In this case, you might make your 'submission' form use php-ffmpeg (as noted above); Just qualify the movie's content and autofill this data when it's submitted, before you do your mail() or whatever other notification you are planning to use. That'll keep people from just sending shit, but it won't help with bandwidth use/waste.Comment



AIM: GrouchyGfy
Comment