admin管理员组

文章数量:1390749

I programmed a website made in react.js, in one part of it I play an .mp3 that before being played requires the user to click on the page to allow sound notifications. The problem is that every time the user enters he necessarily has to click on the bell icon that I placed, otherwise he will not hear sounds. I know that the policy needs to be followed, I do not want to deviate from it, however, is there any way to enable the permissions just once? So that the user does not have to click on something every time he enters my website.

本文标签: reactjsHow to set audio playback permissions only once on a specific websiteStack Overflow