-
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
Not able to access controlBar component options #3095
Comments
Can you elaborate on what you mean by not being able to access control component options? |
I was experimenting with the controlBar component options by first disabling the muteToggle as the docs specify. I receive no errors and absolutely nothing changes with the player itself. I am still able to toggle the mute button. Eventually I will need to disable the user from interacting with the seekHandle. Here is a jsbin.. |
@shroy the problem is that muteToggle is not a control that is present by default in the controlBar since VideoJS 5.0. It was replace with the volumeMenuButton control. The true/false that you are setting is a visibility control and not a 'presence' control. In the following jsbin, I have specifically configured which children should be in the controlbar, including the muteToggle: It's a bit confusing to figure out from the documentation and there is a request to improve that documentation in ticket #2932 |
@hartman thanks for your reply. |
Thank you @hartman . Is there a way to disable seeking while still having the progress bar present on the player? |
@shroy not easily. There doesn't seem to be a provision for disabling or cancelling seeking in the html5 video specification. There also is no option for the video.js custom controls to prevent this as far as I can determine. The only suggestions I can find for something like this is to continuously record the current time during playback from timeupdate functions, and then after seeking, seek back to the position 'before' seeking. |
You could use |
I am unable to access the controlBar component options, yet my standard options (controls, autoplay, preload) are working just fine. I'm running Rails, and Coffeescript. The code is following the documentation.
The text was updated successfully, but these errors were encountered: