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

YouTube videos automatically restart if resized


When using the YouTube video embed as demo'd here, playback resumes automatically if you resize the player.

Repro steps:

1. navigate to http://support.jwplayer.com/customer/portal/articles/1406725-youtube-video-embed
2. click play
3. click pause
4. press F12 to enter dev tools
5. type the following into the console:

$('#container').width('1920px').height('1080px')

Notice the video resumes playing.

This presents a serious problem for my app, where we resize the player window based on the browser's size. Especially problematic on iPhone in my app because turning your phone to Landscape mode stops playing the current video and resumes playing the previous video.

1 Community Answers

Carolyn Ganon

JW Player Support Agent  
-1 rated :

Hello,

Thanks for letting us know about this behavior. This is a known bug in our player’s integration with YouTube. The engineers are aware of the issue and will hopefully address it in future releases.

This question has received the maximum number of answers.