I am developing a chrome extension
that plays videos in the background
(in an inactive tab) and I remarked that Chrome
automatically pauses any video or media before the tab is focused. This is a real problem for me as I need to play videos
in unfocused tabs
.
I have made some research but I haven't found any solution to disable this behavior.
Is there any way to solve this ? A local solution would be great (from chrome params), even if a javascript
one would be better (from the extension).
I am not familiar with a javascript solution, but there is a local option.
This behavior can be adjusted with the flag:
Gesture requirement for media playback
When this flag is enabled, videos will not be played in the background. This flag can be disabled on the chrome://flags page or by adding to the launch options:
--disable-gesture-requirement-for-media-playback
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With