Constructor
new VideoTrack(id, bandwidthnullable, widthnullable, heightnullable)
Creates a new VideoTrack.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number | ||
bandwidth |
number |
<nullable> |
|
width |
number |
<nullable> |
|
height |
number |
<nullable> |
- Source:
Members
-
active :boolean
-
True if this is currently the active track.
Type:
- boolean
- Source:
-
bandwidth :number
-
The bandwidth required in bits per second.
Type:
- number
- Source:
-
height :number
-
The track's height in pixels.
Type:
- number
- Source:
-
id :number
-
A unique ID for the track.
Type:
- number
- Source:
-
width :number
-
The track's width in pixels.
Type:
- number
- Source:
Methods
-
(static) compare(videoTrack1non-null, videoTrack2non-null) → {number}
-
Compares two VideoTrack objects: first by resolution, and then by bandwidth.
Parameters:
Name Type Description videoTrack1
shaka.player.VideoTrack videoTrack2
shaka.player.VideoTrack - Source:
Returns:
- Type
- number