mirror of
https://github.com/videojs/video.js.git
synced 2025-11-06 09:19:15 +02:00
feat: add built-in Picture-in-Picture button (#6002)
Adds a new PictureInPictureToggle component in the controls bar of the player. It depends on videojs-font 3.2.0 (videojs/font#41) for icons. Final spec piece from #5824.
This commit is contained in:
committed by
Gary Katsevman
parent
204ff4619a
commit
116d84af75
@@ -312,6 +312,7 @@ Player
|
||||
│ ├── SubtitlesButton (hidden, unless there are relevant tracks)
|
||||
│ ├── CaptionsButton (hidden, unless there are relevant tracks)
|
||||
│ ├── AudioTrackButton (hidden, unless there are relevant tracks)
|
||||
│ └── PictureInPictureToggle
|
||||
│ └── FullscreenToggle
|
||||
├── ErrorDisplay (hidden, until there is an error)
|
||||
├── TextTrackSettings
|
||||
|
||||
@@ -53,6 +53,7 @@ myPlayer.addChild('BigPlayButton');
|
||||
ChaptersButton (Hidden by default)
|
||||
SubtitlesButton (Hidden by default)
|
||||
CaptionsButton (Hidden by default)
|
||||
PictureInPictureToggle
|
||||
FullscreenToggle
|
||||
ErrorDisplay
|
||||
TextTrackSettings
|
||||
|
||||
Reference in New Issue
Block a user