-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shaka player not auto hide control bar in fullscreen mode on Android device #663
Comments
Thanks for filing! I did some preliminary investigation. It appears that we may be missing some touch event in the UI somehow when we enter fullscreen mode. Only happens on Android because it depends on touch events. |
The problem is that phones do not have a mouse, but browsers simulate them. The browser will still fire mouse events (e.g. So if we are getting touch events, we should override the |
When the user touches the demo controls (e.g. on a phone), the controls will get the :hover pseudo-class. However, this style doesn't get removed until the user "clicks" somewhere else. This causes the controls to remain visible forever. When we are getting touch events, we should override the :hover style and hide the controls. However, we should only do this so long as the clicks are from touch events. For touchscreen laptops (that have both touch events and a mouse), we should still allow hovering over the controls if they used the mouse. Closes #663 Change-Id: I2705aa8fa9e59657b6fe3603c1826125ccce950a
This appears to be happening again. |
Closes #663 Change-Id: Ieda41c62b1202f2636ecd258f487208b55034015
Chrome Version: 57.0.2970.0
OS: Android
This is not observed on other OS, only on Android. It not repro on HTML5
What steps will reproduce the problem?
(1) navigate to http://shaka-player-demo.appspot.com/demo/
(2) load any video
(3) switch to fullscreen mode
What is the expected result?
after a some seconds, control bar hide away
What happens instead?
control bar stays, not hide away
The text was updated successfully, but these errors were encountered: