Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Embedded YouTube videos don't play on iPad or iPhone when responsive


I embed a YouTube video with the following code:

jwplayer("video01").setup({
file: "http://youtu.be/skKzKYYf6yg",
width: "100%",
aspectratio: "16:9"
});

The video should be responsive and should use the jwplayer controls. It works everywhere except for iPad and iPhone. Now, before you say "Oh, well it won't work on iPad or iPhone because it's Flash", let me point out that if I go directly to the YouTube url, the video does play on those devices. Is there any way to get it to also play within JWPlayer?

Note: I have also tried this path, "http://www.youtube.com/watch?v=skKzKYYf6yg", similar to the instruction page at http://support.jwplayer.com/customer/portal/articles/1406725-youtube-video-embed. It didn't work either. The only difference I can see between what I am doing and the example page is that I am using the responsive setup.

Any help would be greatly appreciated.

7 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Please provide a link.

tslatt

User  
0 rated :

This site is in development, so there is no live link. I did provide the code (above) though...

Ethan Feldman

JW Player Support Agent  
0 rated :

Tested your code locally on my iPhone and it plays fine, which is why I asked.

http://i.imgur.com/jCoL7ZK.png

tslatt

User  
0 rated :

Ok, I just put the bare bits on a test page that I could make live, and it doesn't work on iphone/ipad, although it does on desktop browsers:

http://tonyaslatt.com/transfer/test/test.asp

It shows the thumbnail in the player, but when you press play it tries to load for a while and then shows "An error occurred, please try again later."

Ethan Feldman

JW Player Support Agent  
0 rated :

I am using the iPhone5. Latest version of iOS7. Still works fine.

http://i.imgur.com/c8b5oRF.png

tslatt

User  
0 rated :

Hmm, apparently this works sometimes and sometimes doesn't. On reload sometimes it would finally play (maybe once of every four tries), and other times it crapped out again.

I'm going to call this one a YouTube issue, rather than a JWPlayer issue. Thanks for the prompt response.

Ethan Feldman

JW Player Support Agent  
0 rated :

It seems to always work pretty reliably for me.

Np.

This question has received the maximum number of answers.