Constructor
(export) new PipButton(parentnon-null, controlsnon-null)
Parameters:
Name | Type | Description |
---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls |
- Extends:
- Source:
Extends
Classes
Members
(private, non-null) currentPipState_ :HTMLElement
Type:
- HTMLElement
- Source:
(protected) parent :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
Methods
(private) onCastStatusChange_(e)
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
- Source:
(private) onEnterPictureInPicture_()
- Source:
(private) onLeavePictureInPicture_()
- Source:
(async, private) onPipClick_() → (non-null) {Promise}
- Source:
Returns:
- Type
- Promise
(async, private) onTracksChanged_() → (non-null) {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
(private) updateLocalizedStrings_()
- Source: