Class: shaka.polyfill.PiPWebkit

A polyfill to provide PiP support in Safari. Note that Safari only supports PiP on video elements, not audio.

Members

(private, static, constant) INLINE_MODE_ :string

The presentation mode string used to indicate inline mode in Safari.
Type:
  • string
Source:

(private, static, constant) PIP_MODE_ :string

The presentation mode string used to indicate PiP mode in Safari.
Type:
  • string
Source:

Methods

(private, static) exitPictureInPicture_() → (non-null) {Promise}

This:
  • Document
Source:
Returns:
Type
Promise

(private, static) getDisablePictureInPicture_() → {boolean}

This:
  • HTMLVideoElement
Source:
Returns:
Type
boolean

(static) install()

Install the polyfill if needed.
Source:

(private, static) proxyEvent_(eventnon-null)

Parameters:
Name Type Description
event Event
Source:

(private, static) requestPictureInPicture_() → (non-null) {Promise}

This:
  • HTMLVideoElement
Source:
Returns:
Type
Promise

(private, static) setDisablePictureInPicture_(value)

This:
  • HTMLVideoElement
Parameters:
Name Type Description
value boolean
Source: