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

Forums

/

IOS 5.0.1: HTML5 Youtube embedding doesnt work anymore.

2 replies [Last post]
Reply

Hello, used a previous version of the player, to my knowledge we havent had any problems with the player. I updated the player to the latest version and now people are saying it doesn't show the video any more.

Cant verify if it worked or not as I haven't had chance to test with an Ipad until now.

heres my JW code

<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
'file': "<?php $key="Youtube"; echo get_post_meta($post->ID, $key, true); ?>",
'image': '',
'skin': "<?php bloginfo( 'template_url' ); ?>/mediaplayer/skins/boc2/boc2.xml",
'stretching': "fill",
'height': 360,
'width': 640,
'modes': [
{type: 'flash', src: '<?php bloginfo( 'template_url' ); ?>/mediaplayer/player.swf'},
{type: 'html5'},
]
});
jwplayer().onPlay(function() { $('#slides_container').cycle('pause'); });

jwplayer().onPause(function() { $('#slides_container').cycle('pause'); });
jwplayer().onBuffer(function() { $('#slides_container').cycle('pause'); })
jwplayer().onIdle(function() { $('#slides_container').cycle('resume'); });
jwplayer().onComplete(function() { $('#slides_container').cycle('resume'); });
</script>

using Wordpress (latest version) so please ignore the php template stuff. the youtube address is stored in a page custom meta blob

the bottom half controls the housing slider app (this works in IOS still)

wondering if JW player supports the HTML5 embed code for youtube yet?
if not is there a way for me to maybe switch the flash code for the official youtube embed code? the API is a bit out of my depth.
http://britishorthodox.com is where the player is atm.

thanks for a brilliant program.

Reply

sorry it's .org not .com
http://britishorthodox.org

Reply

@Trevor -

I believe the problem has to do with the structure of the HTML on your site. I'm not certain, but there appear to be HTML elements sitting on top of the player, which prevent the YouTube video from being clicked (and therefore starting). I set up a local test case containing nothing but a player with a YouTube video, and it worked fine for me on iOS 5.0.1.

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