Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Muted video in background #128

Open
lukaszbacik opened this issue Jun 17, 2021 · 3 comments
Open

Muted video in background #128

lukaszbacik opened this issue Jun 17, 2021 · 3 comments

Comments

@lukaszbacik
Copy link

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 ;)

@suterma
Copy link

suterma commented Jun 17, 2021

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.

@lukaszbacik
Copy link
Author

I use Spotify app on iOS and NoSleep on Firefox iOS. Spotify is muted when I run a script.

I use:
noSleep.enable();

@MuhammadRahman-awin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants