jsmpeg icon indicating copy to clipboard operation
jsmpeg copied to clipboard

pauseWhenHidden not working

Open ghost opened this issue 2 years ago • 3 comments

No matter if i put pauseWhenHidden true or false the audio stops nevertheless when i switch tabs

ghost avatar Jun 20 '22 16:06 ghost

Yes, I experienced the same issue. According to the documentation: "pauseWhenHidden – whether to pause playback when the tab is inactive. Default true. Note that browsers usually throttle JS in inactive tabs anyway.", but it doesn't work. The audio/video stops regardless of the value of 'pauseWhenHidden'.

shnarobe avatar Jan 20 '24 00:01 shnarobe

The audio/video stops regardless of the value of 'pauseWhenHidden'.

Yes, because

browsers usually throttle JS in inactive tabs anyway

Afaik there's the nothing we can do about this.

phoboslab avatar Jan 20 '24 17:01 phoboslab

Thank you very much for responding!

shnarobe avatar Jan 20 '24 18:01 shnarobe