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.
On mobile devices, playing media with
mediaElement.play()
needs explicit user interaction. On Android, playing media onswipe
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.