drodil / video_auto_pause

Chrome extension to automatically pause/continue video on tab focus changes
MIT License
32 stars 14 forks source link

Track whether or not cursor is moving out/into tab's view to enable auto pause/resume behavior for different monitors/windows #9

Closed knamnguyen closed 6 months ago

knamnguyen commented 6 months ago

added code to track whether cursor is at the edge of the viewport for more than 200ms, indicating intention to move to a different monitor, to pause the video, and then resume it again once the cursor moves back. Added by default, not yet added option button for this.

drodil commented 6 months ago

Thanks for this! Could you add the option button for this in this PR? I think it should be possible for the users to disable this functionality if they want to 😊

knamnguyen commented 6 months ago

@drodil I did, not too organized but I didn't make a lot of changes :D