
iPad cannot play video after clicking back button
Our users have reported that after clicking a link to another page from our video page and then clicking the Back button to return to the video page, the video will not play and only audio can be heard.
This issue seems to affect iPad users only.
We have been able to reliably replicate this error using the following steps:
1: Using an iPad (default Safari browser), navigate to: http://excelcentral.com/jwplayer/test.html
2. Click the "Homepage" link below the video.
3. Click the Back button.
4. Click the play button on the video.
For the moment we are working around this problem by using some JavaScript code to force the page to refresh after clicking the Back button on an iPad, but would prefer a more graceful solution if one exists.
Here's the JavaScript workaround:
if (navigator.userAgent.toLowerCase().indexOf('ipad') > -1) {
window.onpageshow = function (event) {
if (event.persisted) {
window.location.reload();
}
}
}