media-chrome icon indicating copy to clipboard operation
media-chrome copied to clipboard

Hide mouse cursor on video element after user inactivity

Open luwes opened this issue 1 year ago • 5 comments

feature requested by multiple users

luwes avatar Oct 31 '23 12:10 luwes

Can I request that the cursor be hidden after inactivity even if it's over video controls? It bugs the heck out of me when someone's sharing their screen and they move their mouse over the controls and the controls stay up through the whole video. Pet peeve I guess.

kentcdodds avatar Oct 31 '23 12:10 kentcdodds

@kentcdodds thanks for the feedback! I'm not sure we can make that the default. generally the controls stay active when the mouse is over the controls. I'll bring it up as an option w/ the team though.

have you seen this behavior with another player?

luwes avatar Nov 01 '23 14:11 luwes

I've definitely seen players do both, but can't think of a specific example

kentcdodds avatar Nov 01 '23 14:11 kentcdodds

Appreciate the feedback, @kentcdodds, and I've definitely seen that as well. We'd want to be cautious about adding it as default, minimally for accessibility considerations (not all folks are as quick on the draw with interactivity), but I like the idea of making it optional. Another thing we should probably consider in relationship to that is having our delayed hide behavior kick off if a user takes an action: e.g. if the user clicks the play button but doesn't then move the cursor, we can assume (optionally, by default, or as the de facto behavior) that they'd like the controls to eventually automatically hide. We should probably first do an ad hoc survey of other players in the wild to see how they behave around these things (iirc youtube will do this, but maybe only for play/pause? would have to recheck).

cjpillsbury avatar Nov 02 '23 16:11 cjpillsbury

That sounds awesome to me 👍

kentcdodds avatar Nov 02 '23 16:11 kentcdodds