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

Add PictureInPicture hotkey Option #71

Open
TurtleKingCode opened this issue Oct 28, 2020 · 0 comments
Open

Add PictureInPicture hotkey Option #71

TurtleKingCode opened this issue Oct 28, 2020 · 0 comments

Comments

@TurtleKingCode
Copy link

TurtleKingCode commented Oct 28, 2020

I noticed in your ReadMe page and source code that you didn't have a Picture-In-Picture option.
And I'm a sucker for that accessibility.
In my program, I was sort of able to make one for myself...

customKeys: {
      smallPlayer: {
        key: function(event) {
          return (event.which === 73);
        },
        handler: function(player, options, event) {
          if (player.isInPictureInPicture()) {
            player.exitPictureInPicture();
          } else {
            player.requestPictureInPicture();
          }
        }
      }
    }

I was hoping that you could add a PictureInPicture option in your library to make life easier for those like me.

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

No branches or pull requests

1 participant