GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Which Flash/HTML5 video player can auto resize based on video resolution? (https://gfy.com/showthread.php?t=1056856)

SpyCam 02-09-2012 01:49 AM

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.

redwhiteandblue 02-09-2012 04:38 AM

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.

asianseekerz 02-09-2012 04:41 AM

this is cool :)

Fletch XXX 02-09-2012 06:07 AM

Quote:

Originally Posted by SpyCam (Post 18747057)
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...

SpyCam 02-09-2012 11:54 AM

Yeah, i heard JW Player can do that but i cannot find any code/customisation that could do that

harvey 02-09-2012 12:17 PM

it's native for new versions of JW Player, you have to do absolutely nothing :2 cents:

DWB 02-09-2012 01:36 PM

Quote:

Originally Posted by Fletch XXX (Post 18747384)
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?

19teenporn 02-09-2012 01:52 PM

Quote:

Originally Posted by DWB (Post 18748498)
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 02-09-2012 07:10 PM

Quote:

Originally Posted by 19teenporn (Post 18748530)
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...

Dirty Dane 02-09-2012 08:12 PM

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 :thumbsup

Dirty Dane 02-09-2012 08:31 PM

.. 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)});

fris 02-09-2012 09:24 PM

http://sublimevideo.net

SpyCam 02-10-2012 06:58 AM

Dirty Dane: thank you, however, i plan to buy JW Player. Will the codes you pasted work with it?

Dirty Dane 02-10-2012 07:39 AM

Quote:

Originally Posted by SpyCam (Post 18749877)
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.

SpyCam 02-10-2012 12:25 PM

thanks anyways


All times are GMT -7. The time now is 03:05 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123