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 02-09-2012, 01:49 AM   #1
SpyCam
PoiSEO.com
 
SpyCam's Avatar
 
Industry Role:
Join Date: Apr 2001
Location: PoiSEO.com
Posts: 1,201
Which Flash/HTML5 video player can auto resize based on video resolution?

Which Flash/HTML5 video player can auto resize based on video resolution? So i won't need manual entering width and height of each video when resolutions vary a lot.
SpyCam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 04:38 AM   #2
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,793
Wouldn't you need to be setting the size of the object that contains the player to do that, which the player won't be able to do on its own? The player would need to get the resolution from the video file and then call back a js script or something, maybe JW player can do this, I don't know.
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 04:41 AM   #3
asianseekerz
Confirmed User
 
asianseekerz's Avatar
 
Join Date: Aug 2008
Posts: 1,609
this is cool
__________________
LUSTY LIFES : Dad & Daughter Wild Adventures : Naughty Wild Sister
Contact : ICQ : 372109
Email add: [email protected]
asianseekerz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 06:07 AM   #4
Fletch XXX
GFY HALL OF FAME DAMMIT!!!
 
Fletch XXX's Avatar
 
Join Date: Jan 2002
Location: that 504
Posts: 60,840
Quote:
Originally Posted by SpyCam View Post
Flash/HTML5
these two words together shall no longer be.

http://www.zdnet.com/blog/networking...ive-html5/1633

flash is dead. and i am happy. good riddance...
__________________

Want an Android App for your tube, membership, or free site?

Need banners or promo material? Hit us up (ICQ Fletch: 148841377) or email me fletchxxx at gmail.com - recent work - About me
Fletch XXX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 11:54 AM   #5
SpyCam
PoiSEO.com
 
SpyCam's Avatar
 
Industry Role:
Join Date: Apr 2001
Location: PoiSEO.com
Posts: 1,201
Yeah, i heard JW Player can do that but i cannot find any code/customisation that could do that
SpyCam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 12:17 PM   #6
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
it's native for new versions of JW Player, you have to do absolutely nothing
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 01:36 PM   #7
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by Fletch XXX View Post
these two words together shall no longer be.

http://www.zdnet.com/blog/networking...ive-html5/1633

flash is dead. and i am happy. good riddance...
Yea, bye bye flash.

Though, anyone know why EVERY sponsor still offers their tube clips and promo videos in flv instead of mp4?
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 01:52 PM   #8
19teenporn
Confirmed User
 
19teenporn's Avatar
 
Industry Role:
Join Date: Apr 2011
Location: En la reverendisima concha de tu madre!
Posts: 3,034
Quote:
Originally Posted by DWB View Post
Yea, bye bye flash.

Though, anyone know why EVERY sponsor still offers their tube clips and promo videos in flv instead of mp4?
That is something i still don't understand.

Sponsors, give hosted mp4 instead of flv and your viedeos cane be watched in any device!
No need for affiliates to setup separate mobile sites!
19teenporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 07:10 PM   #9
19teenporn
Confirmed User
 
19teenporn's Avatar
 
Industry Role:
Join Date: Apr 2011
Location: En la reverendisima concha de tu madre!
Posts: 3,034
Quote:
Originally Posted by 19teenporn View Post
That is something i still don't understand.

Sponsors, give hosted mp4 instead of flv and your viedeos cane be watched in any device!
No need for affiliates to setup separate mobile sites!
What he said...
19teenporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 08:12 PM   #10
Dirty Dane
Sick Fuck
 
Dirty Dane's Avatar
 
Industry Role:
Join Date: Feb 2004
Location: www
Posts: 9,491
The best way is to only auto-resize the height relative to your default width (to keep same aspect ratio), and with the flash always sticked to the top of the cell. That way you can keep the same width, and whatever you wrap on left/right side of the player will stay at the same place. Otherwise, it could get messy.

To do this you need to tell the player to read the metadata from the video file and then calculate the height relative to the width. Using jQuery and in Flowplayer with 640 pixels width, additional custom code in the javascript will look like this within the clip: {
Code:
scaling: "fit",
  onStart: function(clip) { 
    var wrap = jQuery(this.getParent()); 
    wrap.css({height: (640*(clip.metaData.height/clip.metaData.width)), width: 640});
}
}


If you have banners, links or other content beneath the flashplayer, that will also be automatically pushed/pulled up and down together with the player as long you code it within the same cell

Last edited by Dirty Dane; 02-09-2012 at 08:15 PM..
Dirty Dane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 08:31 PM   #11
Dirty Dane
Sick Fuck
 
Dirty Dane's Avatar
 
Industry Role:
Join Date: Feb 2004
Location: www
Posts: 9,491
.. and if you insist on resizing both height and width to the original size, then the calculation will simply look like this:

Code:
wrap.css({height: (clip.metaData.height), width: (clip.metaData.width)});
Dirty Dane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2012, 09:24 PM   #12
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,364
http://sublimevideo.net
__________________
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 02-10-2012, 06:58 AM   #13
SpyCam
PoiSEO.com
 
SpyCam's Avatar
 
Industry Role:
Join Date: Apr 2001
Location: PoiSEO.com
Posts: 1,201
Dirty Dane: thank you, however, i plan to buy JW Player. Will the codes you pasted work with it?
SpyCam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2012, 07:39 AM   #14
Dirty Dane
Sick Fuck
 
Dirty Dane's Avatar
 
Industry Role:
Join Date: Feb 2004
Location: www
Posts: 9,491
Quote:
Originally Posted by SpyCam View Post
Dirty Dane: thank you, however, i plan to buy JW Player. Will the codes you pasted work with it?
I don't about JW Player. Never worked with it.
Dirty Dane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2012, 12:25 PM   #15
SpyCam
PoiSEO.com
 
SpyCam's Avatar
 
Industry Role:
Join Date: Apr 2001
Location: PoiSEO.com
Posts: 1,201
thanks anyways
SpyCam 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.