Level class
Signature:
export declare class Level
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(data) | Constructs a new instance of the Level class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
_attrs | readonly |
LevelAttributes[] | |
attrs | readonly |
LevelAttributes | |
audioCodec | readonly |
string | undefined | |
audioGroupId | readonly |
string | undefined | |
audioGroupIds | readonly |
(string | undefined)[] | undefined | |
audioGroups | readonly |
(string | undefined)[] | undefined | |
averageBitrate | readonly |
number | |
bitrate | readonly |
number | |
codecs | readonly |
string | |
codecSet | readonly |
string | |
details? | LevelDetails | (Optional) | |
fragmentError | number | ||
frameRate | readonly |
number | |
height | readonly |
number | |
id | readonly |
number | |
loaded? | { bytes: number; duration: number; } | (Optional) | |
loadError | number | ||
maxBitrate | readonly |
number | |
name | readonly |
string | |
pathwayId | readonly |
string | |
realBitrate | number | ||
score | readonly |
number | |
subtitleGroups | readonly |
(string | undefined)[] | undefined | |
supportedPromise? | Promise<MediaDecodingInfo> | (Optional) | |
supportedResult? | MediaDecodingInfo | (Optional) | |
textGroupId | readonly |
string | undefined | |
textGroupIds | readonly |
(string | undefined)[] | undefined | |
uri | readonly |
string | |
url | readonly |
string[] | |
urlId | number | ||
videoCodec | readonly |
string | undefined | |
videoRange | readonly |
VideoRange | |
width | readonly |
number |
Methods
Method | Modifiers | Description |
---|---|---|
addFallback() | ||
addGroupId(type, groupId) | ||
hasAudioGroup(groupId) | ||
hasSubtitleGroup(groupId) |