Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-20-2008, 05:15 PM   #1
Sands
Confirmed User
 
Sands's Avatar
 
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
Javascript Question: Getting Run Time of Flash Video?

Is there a way to get the run time of a Flash video using Javascript? Any help would be greatly appreciated. Thanks
Sands is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2008, 05:22 PM   #2
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
are you trying to have the video time length next to it without it playing?

like on tube sites and members areas?
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2008, 05:31 PM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
dont think so but you could use the php-ffmpeg module

<?
$movie = new ffmpeg_movie('trailer.flv');
$duration = $movie->getduration();
?>

and echo accordingly
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2008, 05:33 PM   #4
Sands
Confirmed User
 
Sands's Avatar
 
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
Quote:
Originally Posted by Deej View Post
are you trying to have the video time length next to it without it playing?

like on tube sites and members areas?
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.

Quote:
Originally Posted by fris
dont think so but you could use the php-ffmpeg module

<?
$movie = new ffmpeg_movie('trailer.flv');
$duration = $movie->getduration();
?>

and echo accordingly
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.
Sands is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2008, 05:34 PM   #5
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
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");
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2008, 05:38 PM   #6
Sands
Confirmed User
 
Sands's Avatar
 
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
Quote:
Originally Posted by GrouchyAdmin View Post
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");
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.
Sands is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2008, 05:42 PM   #7
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by Sands View Post
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.
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.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2008, 05:46 PM   #8
Sands
Confirmed User
 
Sands's Avatar
 
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
Quote:
Originally Posted by GrouchyAdmin View Post
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.
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.
Sands is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.