Detect whether the video is being actively watched (e.g., via mouse or keyboard activity on the page). Only auto-pause if there's no activity for a certain duration.
Use JavaScript event listeners (mousemove, keydown) in content.js to detect activity.
Implement a timer that pauses the video after a period of inactivity.
Detect whether the video is being actively watched (e.g., via mouse or keyboard activity on the page). Only auto-pause if there's no activity for a certain duration. Use JavaScript event listeners (mousemove, keydown) in content.js to detect activity. Implement a timer that pauses the video after a period of inactivity.