Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS devices ignoring cue points after NotAllowedError #939

Open
gintermaggio-am opened this issue Jun 7, 2023 · 3 comments
Open

iOS devices ignoring cue points after NotAllowedError #939

gintermaggio-am opened this issue Jun 7, 2023 · 3 comments

Comments

@gintermaggio-am
Copy link

Expected Behavior

  • Cue points should be maintained and respected after a NotAllowedError

Actual Behavior

  • Cue points appear to still be maintained in memory but are ignored

Steps to Reproduce

  • Only some versions of iOS are currently exhibiting this error. We've reproduced the issue in Safari on an iPhone 14 Plus running iOS v16.0.
  • Visit https://codepen.io/Broken-Wind/pen/RwqwgQp?editors=1111
  • The code should throw a NotAllowedError in the console. We would expect that clicking the Play button to resume playback, the cue point would still be respected, but it's skipped. If you remove the play() on DOMContentLoaded and try clicking play without triggering the NotAllowedError, the cue point is respected.
@gintermaggio-am
Copy link
Author

@rkrishnan8594 Can you let me know if this is a priority fix for you all? Wondering if we need to code our own workaround as it is likely to affect a substantial portion of our users. Thanks!

@rkrishnan8594
Copy link
Contributor

Thanks for reporting this issue @gintermaggio-am (and for putting together a Codepen). I'm able to reproduce, but because it's confined to a narrow use case, we likely won't be prioritizing this soon. My recommendation for now would be to avoid attempting to autoplay a non-muted player - browsers almost always prevent this by throwing an error and often it will lead to unexpected behavior.

@gintermaggio-am
Copy link
Author

Understandable. Thanks for the heads up! If only we could convince the powers that be not to autoplay unmuted videos... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants