Skip to content

Add PictureInPicture hotkey Option #71

@TurtleKingCode

Description

@TurtleKingCode

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions