Auto PiP on Tab Switch

Auto Picture-in-Picture when switching tabs (only if video is playing)

< Spätná väzba na Auto PiP on Tab Switch

Hodnotenie: Dobré - skript funguje

§
Pridaný: 03.06.2025

Hello there!
Script is perfect, except two things:
1) You need to press the pause/play button for the script to work. Without this, NotAllowedError appears in the console. I understand that these are Google Chrome security policies, but if it is possible to bypass this, it would be wonderful.
2) The script works even if the video is paused. I don't think it should work like that, or at least this function should be optionable.

FerNikoMFAutor
§
Pridaný: 16.06.2025

Hi! Thanks for the comment.

I 've considered both of your suggestions:

1. The script now checks that the video is actually playing before enabling Picture-in-Picture (PiP) — this prevents the 'NotAllowedError` error.
2. Added the setting `ONLY_WHEN_PLAYING = true'. If the video is **paused**, PiP ** will not turn on** (by default).

Thanks for the helpful feedback! If you have any more ideas, I'll be happy to add

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.

长期地址
遇到问题?请前往 GitHub 提 Issues。