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

swipe event does not allow playing audio on iOS #1277

Open
orange4glace opened this issue Aug 4, 2021 · 0 comments
Open

swipe event does not allow playing audio on iOS #1277

orange4glace opened this issue Aug 4, 2021 · 0 comments

Comments

@orange4glace
Copy link

On mobile devices, playing media with mediaElement.play() needs explicit user interaction.
On Android, playing media on swipe event works.
On the other side on iOS, it does not work with following error.

Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

@orange4glace orange4glace changed the title swipe event can't allow playing audio on iOS swipe event does not allow playing audio on iOS Aug 4, 2021
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

1 participant