Constructor
new PipButton(parentnon-null, controlsnon-null)
Parameters:
Name | Type | Description |
---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls |
- Extends:
- Source:
Extends
Classes
Members
parent :HTMLElement
Type:
- HTMLElement
- Overrides:
- Implements:
- Source:
Methods
copyStyleSheetsToWindow_()
- Source:
onEnterPictureInPicture_()
- Source:
onLeavePictureInPicture_()
- Source:
onTracksChanged_() → {Promise}
Display the picture-in-picture button only when the content contains video.
If it's displaying in picture-in-picture mode, and an audio only content is
loaded, exit the picture-in-picture display.
- Source:
Returns:
- Type
- Promise
toggleDocumentPictureInPicture_()
The Document Picture-in-Picture API makes it possible to open an
always-on-top window that can be populated with arbitrary HTML content.
https://developer.chrome.com/docs/web-platform/document-picture-in-picture
- Source:
updateLocalizedStrings_()
- Source: