troubleshoot section in doc

This commit is contained in:
jr-k 2024-06-21 14:23:32 +02:00
parent 9c9d2d72f0
commit e9dc9f0e0d

View File

@ -36,4 +36,9 @@ Use a RaspberryPi (Lite OS) to show a fullscreen slideshow (Kiosk-mode)
### Open an Issue or a Pull Request on Github
[<img src="https://github.com/jr-k/obscreen/blob/master/docs/img/github.png" width="64">](https://github.com/jr-k/obscreen/issues)
# Troubleshoot
### Videos aren't playing why ?
This is "normal" behavior. Videos do not play automatically in Chrome because it requires user interaction with the page (a simple click inside the webpage is enough). If you open the console, you'll see the error: [Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first...](https://goo.gl/xX8pDD)
To resolve this, you need to use the Chrome flag --autoplay-policy=no-user-gesture-required. When connecting a Raspberry Pi with Obscreen Player autorun, this issue doesn't occur because the flag is handled automatically for you.You need to enable this flag yourself otherwise.