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

Controlbar fades on desktop. Doesn't fade on mobile. #577

Merged
merged 2 commits into from
Jun 25, 2015

Conversation

jw-kaurand
Copy link
Contributor

Removes the display: table; on the jw-flag-ads since it was preventing the controller from naturally being removed when jw-flag-user-inactive was applied. It was previously there to ensure that the control bar was displayed when we calculate the position of the ad skip button, but that is now the responsibility of the skin.
added a flag for mobile that will make sure that the control bar is displayed during ads. this flag toggles on and off when its mobile and we're entering instream mode. _userActivity fired at the beginning of instream mode so that the user can see the new controller state and know its an ad.
!isMobile is added to _componentFadeListeners as we aren't concerned about adding mouse listeners on mobile and it caused a rare issue if the user clicks the control bar a lot during an ad where the control bar wouldn't fade away.

[Finishes #97402648]

Removes the display: table; on the jw-flag-ads since it was preventing the controller from naturally being removed when jw-flag-user-inactive was applied.  It was previously there to ensure that the control bar was displayed when we calculate the position of the ad skip button, but that is now the responsibility of the skin.
added a flag for mobile that will make sure that the control bar is displayed during ads.  this flag toggles on and off when its mobile and we're entering instream mode.  _userActivity fired at the beginning of instream mode so that the user can see the new controller state and know its an ad.
!isMobile is added to _componentFadeListeners as we aren't concerned about adding mouse listeners on mobile and it caused a rare issue if the user clicks the control bar a lot during an ad where the control bar wouldn't fade away.

[Finishes #97402648]
}
}

.jwplayer.jw-flag-ads-mobile {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer a persistent mobile or touch-screen flag on the player. Then in this case you could use:
.jwplayer.jw-flag-ads-hide-controls.jw-flag-touch-screen {

robwalch added a commit that referenced this pull request Jun 25, 2015
Controlbar fades on desktop. Doesn't fade on mobile. @jw-kaurand added 'jw-flag-touch-screen' instead of temp ads-mobile flag. [Delivers #97402648]
@robwalch robwalch merged commit a1ddc77 into master Jun 25, 2015
@donato donato deleted the bugfix/ads-controlbar-fading branch July 6, 2015 20:40
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.

3 participants