not auto pause when window side by side
hi, thx for your work on this extension, but i found one bug that.
for example, i have two windows side by side or stack on my screen, one is chrome, one is file explorer. when chrome not focus, the "auto pause when window unfocus" not working. only if i minimize the chrome window to task bar, it will then auto pause.
environment: windows 10
Could you take a screen recording of this issue? I could not reproduce it on my Win10 machine.
Same issue for Ubuntu too
Here's a work around. https://gist.github.com/sanjarcode/84815d472ade218b6da33db3c80c45ce Until the issue is fixed.
This seems to be a bug in the chromium itself: https://bugs.chromium.org/p/chromium/issues/detail?can=2&q=chrome.windows.onFocusChanged.addListener&colspec=ID+Pri+M+Iteration+ReleaseBlock+Cr+Status+Owner+Summary+OS+Modified&id=387377&thanks=387377&ts=1403370788
Not much I can do if not doing some custom logic to check for user inactivity in the window (which is not very good). In macintosh the event is fired correctly but for some reason it's not working in Windows.
This seems to be a bug in the chromium itself: https://bugs.chromium.org/p/chromium/issues/detail?can=2&q=chrome.windows.onFocusChanged.addListener&colspec=ID+Pri+M+Iteration+ReleaseBlock+Cr+Status+Owner+Summary+OS+Modified&id=387377&thanks=387377&ts=1403370788
Not much I can do if not doing some custom logic to check for user inactivity in the window (which is not very good). In macintosh the event is fired correctly but for some reason it's not working in Windows.
thx
Hi, I made a pull request that fixed and added this feature. Side by side windows or even different monitors should work with this: https://github.com/drodil/youtube_auto_pause/pull/9
Hi, I made a pull request that fixed and added this feature. Side by side windows or even different monitors should work with this: #9
thx !
@zcw1030 please confirm the solution works for you so we can close this issue, thanks!
sry, i tried, and still not working.
here is a video i make to show the issue. https://youtube.com/shorts/_YaHcnJg6Ww?si=hp1wQZeSYFrFmbtT
chrome on left, file explorer on the right. when focus on file explorer, the video is not paused.
Did you enable the new feature from settings?
Did you enable the new feature from settings?
thx, now its kind of working, if i use mouse to change focus. but if i use alt tab to change focus, its not working.
Very weird, do you have these enabled:
I cannot reproduce this and alt+tab pauses the video fine for me. I am on MacOS with Chrome 123.0.6312.87
Very weird, do you have these enabled:
I cannot reproduce this and alt+tab pauses the video fine for me. I am on MacOS with Chrome 123.0.6312.87
Yes, i have enable this two options.
Hmm, somehow this does not work on Windows 😠 I don't have a machine to debug this at the moment. If you have skills to take a look, or anyone else with Windows machine, please feel free to check if this could be fixed. I will try to get my PC working again and check this out later if it's not possible. Thanks again for great reporting!
Hmm, somehow this does not work on Windows 😠 I don't have a machine to debug this at the moment. If you have skills to take a look, or anyone else with Windows machine, please feel free to check if this could be fixed. I will try to get my PC working again and check this out later if it's not possible. Thanks again for great reporting!
thx for your hard work ! cheers
can I request a feature where the youtube video will play and pause automatically based on whether the window is active or not. The current version works when the windows are out of view. But I want a feature that works on split screen. Like I like to keep youtube on one side and vs code on the other side, so that I can follow coding tutorials and whenever I am writing on vscode the youtube stops playing and vice versa.
I cannot reproduce this and alt+tab pauses the video fine for me. I am on MacOS with Chrome 123.0.6312.87