tri2820 / muer

Self-hosted music player 🐧🎵
https://muer.netlify.app
GNU Affero General Public License v3.0
186 stars 10 forks source link

iOS blocks autoplay, requires user interaction #8

Open tri2820 opened 1 year ago

tri2820 commented 1 year ago

Currently, after user clicking the thumbnail, we will make an async call to get the video's audio track. This is not a user interaction so iOS will block the player with error NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission..

More info: https://github.com/CookPete/react-player/issues/618

huangchucai commented 1 year ago

how to resolve the question