-
Notifications
You must be signed in to change notification settings - Fork 106
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
Never let the player get focus #44
Comments
Can't do an option to never allow focus, but a if (alwaysCaptureHotkeys || !player.autoplay()) {
if (!skipInitialFocus) {
player.one('play', function() {
pEl.focus(); // Fixes the .vjs-big-play-button handing focus back to body instead of the player
});
}
} |
That would be perfect for us as well! |
ctd1500
added a commit
that referenced
this issue
Jun 17, 2017
The commit looks to fit our needs, thanks! Any estimate when you will release a new package? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
I have an issue where the player gets focus when
alwaysCaptureHotkeys
is set tofalse
and autoplay is active. This means that the page will jump to the player on pageload if autoplay is active.This happens because we handle autoplay in a different way in order to do certain detections before we 'autoplay' the video. In short this causes autoplay to be set to false when the player gets initialized, while still starting the video, and therefor it passes the following
if statement
of the hotkeys code:Is it possible to get an option created where we can set the player to never get focus? Something like
neverAllowFocus
for example. which will ignore this wholeif statement
if set totrue
?Thanks in advance
The text was updated successfully, but these errors were encountered: