API
Picture In Picture
In this section, we'll look at how to request and track picture-in-picture (PIP) changes with Vidstack Player.
Methods
You can request to enter or exit picture-in-picture mode on the <media-player>
element like so:
Media Store
The following picture-in-picture properties are available on the media store:
canPictureInPicture
: Whether PIP API is currently available.pictureInPicture
: Whether the player is currently in PIP mode.
Media Remote
The media remote provides methods for dispatching media-enter-pip-request
and media-exit-pip-request
request events like so:
Styling
The following media attributes are available for styling based on the current picture-in-picture state:
Events
The following events are available for detecting picture-in-picture changes or errors:
Previous
<-
Fullscreen
Next
Quality
->