-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Finalize default control bar components (and their options) #2507
Comments
@mmcc, @gkatsev, @dmlap, I agree with the following statements. Please give me an agree/disagree for each.
What the player looks like with all control bar components 'turned on' Notes
And FYI, here's the CSS that was needed to show the ones that aren't showing by default. This uses the minimum strength of selectors required to show the control, in case we want the optional controls any easier to show. I expect to get requests on how to show the other time controls, to match the old way. /* Hidden by default, selectively shown.
At this point this is how a skin designer would show them. */
.video-js .vjs-current-time { display: block; }
.video-js .vjs-time-divider { display: block; }
.video-js .vjs-duration { display: block; }
.video-js .vjs-mute-control { display: block; }
.video-js .vjs-volume-control { display: block; }
/* Could be broken. Can't find what's supposed to show it now */
.video-js .vjs-live-control { display: block; }
/* Programmatically hidden with vjs-hidden when no tracks */
.video-js .vjs-chapters-button { display: block !important; }
.video-js .vjs-subtitles-button { display: block !important; }
.video-js .vjs-captions-button { display: block !important; }
/* Hidden with state classes */
.video-js .vjs-control-bar { display: flex; }
.video-js.vjs-has-started .vjs-big-play-button { display: block; } |
👍
👍
👍 Other setups would be doable via just CSS as well (just mute, just volume bar) or via setup options (inline, popup, vertical, horizontal, etc). |
👍
👍
👍 |
Everything in this is done except picking a new spinner. I looked through the other material icons and agree with Matt that the current one is probably the best option of the set. And it looks a little less like Picasa to me now that I've seen both side by side. The spinner is a signature visual though so I may try to get in one of the following, if there's any favorites. But otherwise I'll push this to 5.1. |
We can use icons from other sets. Our social icons, for example, come from font awesome. We should just make sure they match. — On Thu, Sep 10, 2015 at 5:27 PM, Steve Heffernan [email protected]
|
Going to close this one since we're just waiting on #2582, which just needs a verbal approval, from anyone. |
@mmcc is there a simple way to move the progress bar back to its original position, i.e. not inline? |
@tneaves You can do it using just CSS. There are other better examples (that are probably more up to date), but I hacked something together for videojs-skin-twitchy. The relevant piece is the progress styles, but you'll also want to set the spacer element to width auto so it automatically resizes to fill the void left by removing the progress bar. |
Followup
The text was updated successfully, but these errors were encountered: