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

YouTube and play() action


On mobile devices (like Windows 10 Mobile) if I click at custom text after the page is loaded: <p onclick="playerInstance.play();">Start the video</p>, the video will never start. I can only start the video by clicking at the build-in play button in the middle of the player area.
Could you fix this issue?

5 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi there,

My name is Alex and I am one of the Team Leads of the Support Team at JW Player. I will be more than happy to assist you with your questions.

I created a test page, linked below, that has a link set to tell the player to start playing via the following code:

<a onclick="playerInstance.play();">Click here</a> to begin playback.

Click that link to begin playback worked in Safari for iOS and Chrome for Android. Please note that we do not support the player on Windows Mobile.

Test Page – http://qa.jwplayer.com/~abussey/demos/general/play-via-link.html

Thank you!

s...

User  
0 rated :

Thank you for the reply. This error occurs only when YouTube video is played. With any other media everything is fine. Please reproduce your example with YouTube link.

Alex

JW Player Support Agent  
1 rated :

Hi,

I made a new test page with a YouTube source and it looks like it works in Chrome for Android, but it doesn’t work properly in Safari for iOS. With that being said, this is probably something related to a change in YouTube’s API. I will let our engineers know but I won’t be able to provide a timeframe for a resolution.

Thank you.

s...

User  
0 rated :

Thank you! Could you write here after fixing this bug?

Alex

JW Player Support Agent  
0 rated :

Since I don’t know when it’s going to be fixed, I would recommend you instead keep an eye on our JW 7 Release Notes page as we post release notes and bug fixes with every new update.

This question has received the maximum number of answers.