Open lukaszbacik opened 3 years ago
It should not. I am using nosleep.js for a metronome PWA (https://tic.replayer.ch) and both the app and e.g. spotify can run simultaneously, having no audio issues. This is on an Android device, using Google Chrome for the PWA.
I use Spotify app on iOS and NoSleep on Firefox iOS. Spotify is muted when I run a script.
I use:
noSleep.enable();
Please add the muted property, I am having errors otherwise, Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD Promise.catch (async) value @ NoSleep.min.js?ver=2022.04.15:2 init @ dpt.js?ver=2022.04.15:7 (anonymous) @ dpt.js?ver=2022.04.15:354 e @ jquery.min.js?ver=3.6.0:2 t @ jquery.min.js?ver=3.6.0:2 setTimeout (async) (anonymous) @ jquery.min.js?ver=3.6.0:2 c @ jquery.min.js?ver=3.6.0:2 fireWith @ jquery.min.js?ver=3.6.0:2 fire @ jquery.min.js?ver=3.6.0:2 c @ jquery.min.js?ver=3.6.0:2 fireWith @ jquery.min.js?ver=3.6.0:2 ready @ jquery.min.js?ver=3.6.0:2 B @ jquery.min.js?ver=3.6.0:2
Hi, can you add mute option (e.g. in config) for added video?
The idea is to ensure that the video does not mute the background music you are listening to on your device.
Thanks ;)