-
Notifications
You must be signed in to change notification settings - Fork 120
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
i need some help to make the Videojs video player buttons navigable #56
Comments
@onigetoc I'm having the same issue. Did you find any solution? |
if you want to use this you will have two options one create custom buttons using the javascript player api for video js or use the body eliment to get the player controls as they are dynamically loaded |
@jonybekov If i forget just ask me again ;) |
Ok, I updated my CodePen demo to make it work and navigate Videojs control bar buttons. At Videojs 'playing' it automatically set to the play button on ready. If the video is not showing the player button SN cannot find the control button. I think it may be why SN can work.
By default, Videojs show the control-bar when user is active (or touch a keyboard key); May be if it's done the right way there's no need for my control bar button navigation with javascript. You can mix SN for your need. like auto focus the player on load ect. It may need a delay or the player be ready. I used spatial-navigation to work with the down keyword and the player should be focused. like i said the Videojs plugin 'hotkeys' do the job to focus the right thing because i'm not sure what it focus exactly. I tryed myself but did find out. Like i said, Spatial-Navigation is used to focus the main player and should be set (add) It's seem that until the new audio have to be muted on autoplay on browser now, Videojs do some weird things. I don't know why but if you click on the video or big play button it will loose focuse and we may need to force focus where we want. The other problem is the control-bar is inside the player and i don't know if we can focus inside and outside the right way. |
I create a website that can be navigable from the keyboard.
Everything work well with my keyboard navigation with this navigation plugin but after hours and days i still can't navigate these Video js buttons and i don't understand why.
I did a little example here one Codepen and it still not working.
https://codepen.io/onigetoc/pen/MWBowmg
I use the videojs seek plugin to add a forward and rewind buttons.
I will also use the videojs hotkeys plugin but for now, i'm just trying to make my player navigable with the arrow keyboard.
I absolutely want to use the Spatial Navigation plugin.
The text was updated successfully, but these errors were encountered: