videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
38.12k stars 7.46k forks source link

Stream does not restart after background on IOS Safari #6447

Open cadalt opened 4 years ago

cadalt commented 4 years ago

Description

When you are watching a m3u8 stream on ios safari and background the page for a few minutes, when you bring the page back to the foreground you get an error, or the play buttons are unresponsive. You have to refresh or use the scrubber to play the video

Steps to reproduce

  1. Go to the following url, and view the video on your mobile browser, iOS Safari: https://www.wesh.com/article/63-years-after-their-first-dance-high-school-sweethearts-reunite-and-get-married/30923910
  2. While the video is playing, lock your cell phone, and put it down for 5 minutes
  3. Log back into your phone, and open iOS Safari

Results

The player shows the following error: "The media playback was aborted due to a corruption problem or because the media used features your browser did not support." or the play control does not play the video. You have to use the scrubber to start the video playing

Expected

The player resumes where it left off, or you can press play to resume the video

Actual

The player shows the following error: "The media playback was aborted due to a corruption problem or because the media used features your browser did not support." or the player is an unresponsive black box. You have to refresh the page to get the video back

Error output

Sometimes you get the error: The media playback was aborted due to a corruption problem or because the media used features your browser did not support.

versions

we reproduced on various iphones from 7 up including iPhone XS 13.3 and iPhone 8 Plus 13.2.3

videojs

7.5.4

browsers

safari

OSes

ios

plugins

videojs-contrib-ads, videojs-dock, videojs-ima, videojs-markers, videojs-overlay

welcome[bot] commented 4 years ago

πŸ‘‹ Thanks for opening your first issue here! πŸ‘‹

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

Patrickwong8015 commented 4 years ago

Please don't send for me again

welcome[bot] notifications@github.com 于 2020εΉ΄2月15ζ—₯周六 上午4:11ε†™ι“οΌš

πŸ‘‹ Thanks for opening your first issue here! πŸ‘‹

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines https://github.com/videojs/video.js/blob/master/CONTRIBUTING.md.

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/videojs/video.js/issues/6447?email_source=notifications&email_token=AOOPLEUVZ6QLCBYZ7HN2WF3RC33IHA5CNFSM4KVO7HVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL2JJBI#issuecomment-586454149, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOOPLETETWRJGQHNRBM5QOLRC33IHANCNFSM4KVO7HVA .

gkatsev commented 4 years ago

Yeah, this is a deep safari issue that we haven't had the chance to create a work around for. Webkit issues: https://bugs.webkit.org/show_bug.cgi?id=203415 and https://bugs.webkit.org/show_bug.cgi?id=195452

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.