hammerjs / hammer.js

A javascript library for multi-touch gestures :// You can touch this

Home Page:http://hammerjs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swipe event does not allow playing audio on iOS

orange4glace opened this issue · comments

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.