gdrcd 5.6 problema audio messaggi postato il 28/07/2023 15:28:08 nel forum programmazione, gdrcd e open source
scusate ci sto diventando matto non riesco a risolvere questo problema, in pratica quando arriva un nuovo messaggio mi compare questa cosa:
(in promise) DOMException: play() failed because the user didn't interact with the document first.
su internet ho letto che basta mettere il muted a true ma cosi facendo non sento il suono, come posso risolvere?
Pagine → 1
28/07/2023 18:09:55
Il problema nasce dalle "recenti" policy di Chrome riguardo la generazione di audio e contenuti nelle schede che potrebbero dare fastidio.
As you may have noticed, web browsers are moving towards stricter autoplay policies in order to improve the user experience, minimize incentives to install ad blockers, and reduce data consumption on expensive and/or constrained networks. These changes are intended to give greater control of playback to users and to benefit publishers with legitimate use cases.
Chrome's autoplay policies are simple:
Muted autoplay is always allowed.
Autoplay with sound is allowed if:
The user has interacted with the domain (click, tap, etc.).
On desktop, the user's Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
The user has added the site to their home screen on mobile or installed the PWA on desktop.
Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.
Questa č la soluzione che dŕ Google :D
Discussione seguita da
Pagine → 1
Rispondi alla Discussione Aggiungi ai Preferiti Inoltra Discussione Forum Programmazione, GDRCD e Open Source Elenco Forum
Mondi Incantati - Il rifugio dei narratori: Terzo racconto