Class: shaka.polyfill.PiPWebkit

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

Constructor

new PiPWebkit()

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

Source:

Members

INLINE_MODE_ :string

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

PIP_MODE_ :string

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

Methods

exitPictureInPicture_() → {Promise}

This:
  • Document
Source:
Returns:
Type
Promise

getDisablePictureInPicture_() → {boolean}

This:
  • HTMLVideoElement
Source:
Returns:
Type
boolean

install()

Install the polyfill if needed.
Source:

proxyEvent_(eventnon-null)

Parameters:
Name Type Description
event Event
Source:

requestPictureInPicture_() → {Promise}

This:
  • HTMLVideoElement
Source:
Returns:
Type
Promise

setDisablePictureInPicture_(value)

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