Class: shaka.ui.PipButton

Constructor

new PipButton(parentnon-null, controlsnon-null)

Parameters:
Name Type Description
parent HTMLElement
controls shaka.ui.Controls
Extends:
Source:

Extends

Classes

Factory

Members

currentPipState_ :HTMLElement

Type:
  • HTMLElement
Source:

parent :HTMLElement

Type:
  • HTMLElement
Overrides:
Implements:
Source:

pipButton_ :HTMLButtonElement

Type:
  • HTMLButtonElement
Source:

pipIcon_ :HTMLElement

Type:
  • HTMLElement
Source:

videoContainer_ :HTMLElement

Type:
  • HTMLElement
Source:

Methods

copyStyleSheetsToWindow_()

Source:

isPipAllowed_() → {boolean}

Source:
Returns:
Type
boolean

onCastStatusChange_(e)

Parameters:
Name Type Description
e Event
Source:

onEnterPictureInPicture_()

Source:

onLeavePictureInPicture_()

Source:

onPipClick_() → {Promise}

Source:
Returns:
Type
Promise

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: