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

Export addClass and removeClass #661

Merged
merged 1 commit into from
Aug 26, 2013

Conversation

sansb
Copy link
Contributor

@sansb sansb commented Jul 30, 2013

Would like to have addClass and removeClass available on player. Useful for stuff like adding a 'preroll' class when showing preroll.

@heff
Copy link
Member

heff commented Jul 31, 2013

Would you miss fadeIn/fadeOut if I killed it? I'm working on some big control bar changes, where I've moved the fading back to the control bar itself, and based it on states of the video.

/* Hide the control bar when the video is playing and the user is passive  */
.vjs-default-skin.vjs-has-started.vjs-user-passive.vjs-playing .vjs-control-bar {
  display: block;
  visibility: hidden;
  opacity: 0;

  @trans: visibility 1.0s, opacity 1.0s;
  .transition(@trans);
}

https://github.com/heff/video-js/blob/feature/control-bar-fixes/src/css/video-js.less#L175

@sansb
Copy link
Contributor Author

sansb commented Jul 31, 2013

I would not! This is the only reason I needed fadeIn/fadeOut- https://gist.github.com/sansb/6122588. It's a plugin that monitors user mouse activity and hides the controls if the mouse doesn't move for some amount of time. It looks like your control bar updates do exactly this, so I would no longer need fadeIn/fadeOut.

@heff
Copy link
Member

heff commented Jul 31, 2013

Ok, awesome.

On Jul 31, 2013, at 7:44 AM, Sean Bloomfield notifications@github.com wrote:

I would not! This is the only reason I needed fadeIn/fadeOut- https://gist.github.com/sansb/6122588. It's a plugin that monitors user mouse activity and hides the controls if the mouse doesn't move for some amount of time. It looks like your control bar updates do exactly this, so I would no longer need fadeIn/fadeOut.


Reply to this email directly or view it on GitHub.

@heff heff merged commit f7a72b1 into videojs:master Aug 26, 2013
@heff
Copy link
Member

heff commented Aug 26, 2013

Got this merged in, sans fade methods since we're not using those in master anymore. Thanks.

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