Class: shaka.ui.PipButton

Constructor

(export) new PipButton(parentnon-null, controlsnon-null)

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

Extends

Classes

Factory

Members

(protected) controls :shaka.ui.Controls

Type:
Overrides:
Source:

(private, non-null) currentPipState_ :HTMLElement

Type:
  • HTMLElement
Source:

(private, non-null) localVideo_ :HTMLMediaElement

Type:
Source:

(protected) parent :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

(private, non-null) pipButton_ :HTMLElement

Type:
  • HTMLElement
Source:

(private, non-null) pipIcon_ :HTMLElement

Type:
  • HTMLElement
Source:

(protected) player :shaka.Player

Type:
Overrides:
Source:

(protected) video :HTMLMediaElement

Type:
Overrides:
Source:

Methods

(private) isPipAllowed_() → {boolean}

Source:
Returns:
Type
boolean

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