muxinc / media-chrome

Custom elements (web components) for making audio and video player controls that look great in your website or app.
https://media-chrome.org
MIT License
1.77k stars 71 forks source link

Hide mouse cursor on video element after user inactivity #756

Open luwes opened 1 year ago

luwes commented 1 year ago

feature requested by multiple users

kentcdodds commented 1 year ago

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.

luwes commented 1 year ago

@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?

kentcdodds commented 1 year ago

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

cjpillsbury commented 1 year ago

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).

kentcdodds commented 1 year ago

That sounds awesome to me 👍