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

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

updateLocalizedStrings_()

Source: