Class: shaka.player.Restrictions

Constructor

new Restrictions()

Creates a Restrictions object, which describes a set of video track restrictions. A VideoSource will not adapt (or permit switching) to video tracks that do not meet the specified limitations.
Source:

Members

(nullable) maxBandwidth :number

If set, specifies a maximum bandwidth for video tracks.
Type:
  • number
Source:

(nullable) maxHeight :number

If set, specifies a maximum height for video tracks.
Type:
  • number
Source:

(nullable) maxWidth :number

If set, specifies a maximum width for video tracks.
Type:
  • number
Source:

(nullable) minBandwidth :number

If set, specifies a minimum bandwidth for video tracks.
Type:
  • number
Source:

(nullable) minHeight :number

If set, specifies a minimum height for video tracks.
Type:
  • number
Source:

Methods

clone() → (non-null) {shaka.player.Restrictions}

Clones the Restrictions.
Source:
Returns:
Type
shaka.player.Restrictions