Skip to content
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

Implement Autohide for Mobile/Touch Devices #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GregKass
Copy link

@GregKass GregKass commented May 3, 2013

A touch on the videoplayer fades in the player controls, over 'fadeIn' milliseconds.
When the touch is released, after 'hold' milliseconds, the controls fade out after 'fadeOut' milliseconds, unless the player or controls are retouched, in which case the 'hold' countdown resets until next touch release.

I copied the conditional checks for autohide into the event handlers. This satisfies the need to not autohide the controls on video end and on video pause, for example. Many video players, particularly for entertainment content, keep the controls shown on end and on pause. I have not tested fully if having the conditionals here negates the need for the same conditional on line 2262.

A touch on the videoplayer fades in the player controls, over 'fadeIn' milliseconds.
When the touch is released, after 'hold' milliseconds, the controls fade out after 'fadeOut' milliseconds,
unless the player or controls are retouched, in which case the 'hold' countdown resets until next touch release.

I copied the conditional checks for autohide into the event handlers.
This satisfies the need to not autohide the controls on video end and on video pause, for example.
Many video players, particularly for entertainment content, keep the controls shown on end and on pause.
I have not tested fully if having the conditionals here negates the need for the same conditional on line 2262.
@thepag
Copy link
Contributor

thepag commented Nov 20, 2014

This is generic notification that all users issuing pull requests must sign our CLA before we can consider merging with the jPlayer project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants