videojs / video-js-swf

Custom Flash Player for VideoJS
http://videojs.com
Other
336 stars 312 forks source link

Bug with cursor hiding in SWF player #195

Closed Tugzrida closed 3 years ago

Tugzrida commented 8 years ago

When viewing an FLV(which therefore uses the SWF player), the cursor is not hidden after a period of inactivity as happens when viewing an MP4. I haven't done much flash coding so I don't really have an idea of how to fix it however SO suggests that it's easier in the flash side rather than using HTML/CSS. This page looks to be the right function but I wouldn't know how to implement it.

Example: https://tugzrida.github.io/video-js-cursor-bug/ (view source)

gkatsev commented 8 years ago

Thanks for the detailed report. That adobe page does have the correct method. We'd want to call Mouse.hide() and Mouse.show() at the appropriate time. And in fact, you can't fix this from the HTML/CSS side. The thing that makes it not super simple is that we'd only want this to happen in fullscreen and only after some inactivity timeout which should be reset whenever the mouse is moved.

misiek08 commented 8 years ago

On every mouse move you can reset timeout if user is in fullscreen, and if he exits then clear timeout and just leave mouse visible.

2015-12-17 17:39 GMT+01:00 Gary Katsevman notifications@github.com:

Thanks for the detailed report. That adobe page does have the correct method. We'd want to call Mouse.hide() and Mouse.show() at the appropriate time. And in fact, you can't fix this from the HTML/CSS side. The thing that makes it not super simple is that we'd only want this to happen in fullscreen and only after some inactivity timeout which should be reset whenever the mouse is moved.

— Reply to this email directly or view it on GitHub https://github.com/videojs/video-js-swf/issues/195#issuecomment-165504442 .