Авто PiP при переключении вкладок

Автоматически включает режим "Картинка в картинке" (PiP), если вы ушли с вкладки и видео воспроизводится

< Обсуждения: Авто PiP при переключении вкладок

Отзыв: Хороший — скрипт работает как нужно

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.

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

Ответить

Войдите, чтобы ответить.

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