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:
Source:

pipButton_ :HTMLButtonElement

Type:
  • HTMLButtonElement
Source:

pipIcon_ :HTMLElement

Type:
  • HTMLElement
Source:

Methods

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

updateLocalizedStrings_()

Source: