Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Setting Width x Height on Embed

2 replies [Last post]
Reply

Maybe I'm just dense, but is there a way to override the width and height of the player when it's embedded? Or does it always use the width and height of the particular player your using?

This doesn't work:

<script type="text/javascript" src="http://content.bitsontherun.com/players/G7w7bNdW-URVm6Fou.js"></script>
<script type="text/javascript">
botr_G7w7bNdW_URVm6Fou.addVariable("width", 480);
botr_G7w7bNdW_URVm6Fou.addVariable("height", 270);
</script>

Neither does this:

<script type="text/javascript" src="http://content.bitsontherun.com/players/G7w7bNdW-URVm6Fou.js"></script>
<script type="text/javascript">
jwplayer().width = 480;
jwplayer().height = 270;
</script>

Thanks!

Reply

It is not possible to set dimensions using the addVariable calls.

The player can be resized using the resize function: http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference...

Reply

Thanks for the response. We've decided to host jwplayer ourselves and side-step limitations like this.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options