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

Improve text tracks and info box display logic #827

Merged
merged 9 commits into from
Aug 9, 2017

Conversation

tf
Copy link
Member

@tf tf commented Aug 9, 2017

Backport of #826

tf added 8 commits August 9, 2017 17:31
Make sure info box elements are not displayed if the corresponding
props only contain empty strings.
Move text tracks up immediately when player controls are displayed,
but only move them back down on next cue change when player controls
are hidden again.

When player controls are displayed, we have no other chance than
moving the text tracks directly since they would otherwise be hidden
by the player controls. After the player controls are hidden again, we
can wait for the user to finish reading the current cue and only then
move text tracks back down.
Let other components determine whether an info box will be displayed.
Allow passing a custom `className` and mouse enter/mouse leave event
handlers.
* Add `infoBoxHiddenDuringPlayback` flag to state which can be
  controlled via actions.

* Hide info box directly if text tracks are enabled.

* Remove `has_been_faded` css class which is now unused.
Prevent player controls from fading too quickly after the page has
been entered.
@tf tf changed the title Backport of #826 Improve text tracks and info box display logic Aug 9, 2017
@tf tf added the backport label Aug 9, 2017
@tf tf added this to the v12.0 milestone Aug 9, 2017
@coveralls
Copy link

coveralls commented Aug 9, 2017

Coverage Status

Coverage remained the same at 99.032% when pulling 107c171 on tf:hide-info-box-for-text-tracks-12-0 into 6c4556a on codevise:12-0-stable.

@coveralls
Copy link

coveralls commented Aug 9, 2017

Coverage Status

Coverage remained the same at 99.032% when pulling 8ec2da5 on tf:hide-info-box-for-text-tracks-12-0 into 6c4556a on codevise:12-0-stable.

@tf tf merged commit d3c04e0 into codevise:12-0-stable Aug 9, 2017
@tf tf deleted the hide-info-box-for-text-tracks-12-0 branch August 9, 2017 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants