This is a message.

Fullscreen Mode Breaks Aspect Ratio of Video Created Jan 16, 2009

This thread is solved

Views: 4760     Replies: 5     Last reply Aug 8, 2011  
You must login first before you can use this feature

eiserloh

Posts: 2

Registered:
Nov 12, 2008

Fullscreen Mode Breaks Aspect Ratio of Video

Posted: Jan 16, 2009

I have list of videos (link here) that use the overlay plugin nicely. However, when you view the videos (which are 16:9) in fullscreen mode, this aspect ratio is lost. For example:

My 16:9 videos become 4:3 videos on a 4:3 monitor. This should, of course, not happen. There should be black bars above and below the video, like when you watch an HD DVD on a nonHD TV.

Is this a bug? Is there a fix?

alexus

Posts: 7

Registered:
Jan 13, 2009

» Fullscreen Mode Breaks Aspect Ratio of Video

Posted: Jan 17, 2009

Reply to: Fullscreen Mode Breaks Aspect Ratio of Video, from eiserloh
Couple of threads below, I did then the same, it worked,it was tackled by adding: scaling: 'fit' to the script

<script type="text/javascript">
$f("player", "..path../flowplayer-3.0.2.swf", {
clip: {
baseUrl: '..path to folder/',
autoPlay: true,
scaling: 'fit'
}
} );
</script>

Oddsodz

Posts: 2

Registered:
Feb 24, 2009

» » Fullscreen Mode Breaks Aspect Ratio of Video

Posted: Apr 12, 2009

Reply to: » Fullscreen Mode Breaks Aspect Ratio of Video, from alexus
I Am having the same issue. I Just can seem to work out where to put the

scaling: 'fit'

in my html.

Here is what I am using



<center><script src="http://www.onlinetruckers.org/main/media/flowplayer/example/flowplayer-3.0.6.min.js"></script>

<a  
    href="http://www.onlinetruckers.org/main/media/mediaplayer/uktruckshow2008/clip1.flv"  
    style="display:block;width:530px;height:460px"
    id="player"> 
<img src="http://a248.e.akamai.net/f/248/5462/2h/images.gamezone.com/screens/25/3/23/s25323_ps2_1.jpg" alt="Search engine friendly content" />
</a>

<script language="JavaScript"> 
flowplayer("player", "http://www.onlinetruckers.org/main/media/flowplayer/flowplayer-3.0.7.swf" );
</script>

</center>


You can see it working here

http://www.onlinetruckers.org/main/content/view/341/65/

But no matter how I try to add "scaling" to fix the aspect ratio, It will not work.

I Know I am just not putting it in the right place. Can somebody help me out?

Thanks

Oddsodz

Edit -----

I fixed it.


<center><script src="http://www.onlinetruckers.org/main/media/flowplayer/example/flowplayer-3.0.6.min.js"></script>

<a  
    href="http://www.onlinetruckers.org/main/media/mediaplayer/uktruckshow2008/clip1.flv"  
    style="display:block;width:530px;height:460px"
    id="player"> 
<img src="http://static.flowplayer.org/img/player/btn/showme.png" alt="Search engine friendly content" />
</a>

<script language="JavaScript"> 
flowplayer("player", "http://www.onlinetruckers.org/main/media/flowplayer/flowplayer-3.0.7.swf", {

 clip: { 

scaling: 'fit'
}
      }); 
</script>

</center>

nokian

Posts: 1

Registered:
Dec 13, 2009

ratio in overlayed version

Posted: Dec 13, 2009

Reply to: » » Fullscreen Mode Breaks Aspect Ratio of Video, from Oddsodz
Hi,
Could someone help me to fix same thing in overlay version, becase there is a little different kind of javascript code.

So, where should I paste clip: {scaling: 'fit'} ?

Thanks



<script>

$(function() {

	// install flowplayer into flowplayer container
	var player = $f("player", "/swf/flowplayer-3.1.5.swf");
	
	// setup button action. it will fire our overlay 
	$("button[rel]").overlay({
		
		// use the Apple effect for overlay
		effect: 'apple',
		
		// when overlay is opened, load our player
		onLoad: function() {
			player.load();
		},
		
		// when overlay is closed, unload our player
		onClose: function() {
			player.unload();
		}
	});
			
});
</script>


Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» ratio in overlayed version

Posted: Dec 13, 2009

Reply to: ratio in overlayed version, from nokian
scaling always goes as clip property in the flowplayer configuration, i.e. the 3rd argument to the flowplayer function:


// install flowplayer into flowplayer container 
var player = $f("player", "/swf/flowplayer-3.1.5.swf", {
  // player config goes here
  clip: {
    scaling: "fit"
  }
});