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

Playing video on mobile devices


Hello,

I have a problem with JWPlayer on mobile devices, such as iPhone with iOS 10 and iPad with iOS 9. Problem is some videos can`t be played.
I have tried to start it like this:

$(function () {
$('video.jw-video').attr('playsinline','');
$('video.jw-video').attr('autoplay','');

$("video.jw-video").bind("click", function() {
jwplayer("playerBody").play();
});
});
but it didn`t help. You can find the configuration code in the html block, where video is (jwplayer("playerBody")).

If someone will help me to play video on mobile device from this page - http://tarnowska.tv/aktualnosci/czytaj/14429,anna-czech-rok-w-sejmie.html - I will be very thankful!

Thanks
Artem

1 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi Artem,

As of JW Player 7.7.0, videos are playable inline on iOS without any additional configuration on your part, so you do not have to set the “playsinline” attribute on the <video> element.

As for autoplaying, this feature will be released in our player in version 7.8.0, which is currently in beta. In order to have the content autostart, you will have to have the player set to be muted.

This means that if you have your player setup like the following, your MP4 should automatically begin playing in Safari on iOS and be playable inline, as of version 7.8.0 of the player:

jwplayer("playerBody").setup({
  file: "video.mp4",
  autostart: true,
  mute: true
});

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.