![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
I make pixels work
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?
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | ||
Confirmed User
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
|
Quote:
Quote:
|
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Now choke yourself!
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");
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
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.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |