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

Forums

/

Javascript Control and Multiple Players on the iPad

11 replies [Last post]
Reply

I'm creating page that contains multiple videos. Each one in a hidden div. A simple playlist won't work because I have a lot of text and other HTML elements specifically associated with each video.

When a div containing a video is displayed I need the video in the previous (now hidden) div to stop playing. On a desktop browser I do this using Javascript code that looks like this:

jwplayer('botr_inserttheplayeridhere_swf').stop();

This doesn't work on the iPad, which is using the HTML5 player. Is there anyway to stop the video in a similar fashion for the HTML5 player?

Reply

I'm afraid that the player API doesn't work for the HTML5 fallback yet. I think the best solution right now might be to use the iFrame embeds indeed, and when you switch player, instead of unhiding divs, you would change the iframe src to a new embed code.

Reply

Thanks. I'll experiment with the iFrame embeds.

Reply

I've experimented with JW Player with videos hosted on my own server and "jwplayer('playerid').pause();" seems to work nicely on the iPad. Its a drag it doesn't it work with videos served from Bits on the Run.

iFrame embeds "kind of" work for my scenario but isn't nearly as nice.

-Brent

Reply

Unfortunately the HTML5 fallback for Bits on the Run is fairly basic for the time being. We expect to release a more fully fledged HTML5 fallback that includes the player API around Q1-Q2 2012.

Reply

We really want HTML 5 player Javascript control. What features of Bits on the Run would we loose if we just use the stand alone version of JW player but used Bits on the Run to transcode and serve our videos? Would we still get analytics and bit rate switching?

Thanks for your help.

Reply

You would lose both if you were to use your own player.

Reply

Remco, is there a firm date for this release yet?

Reply

No, there isn't, we won't announce release dates until weeks in advance at most, everything else is subject to change.

Reply

Thanks for the quick reply Remco. So if I understand it right I can't expect jwplayer().load to work on iPad until this is fixed?

Reply

This is correct.

Reply

OK thanks Remco. I eagerly await this release :-)

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