Home > hls.js > Level

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
audioGroupIds? (string | undefined)[] (Optional)
bitrate readonly number
codecSet readonly string
details? LevelDetails (Optional)
fragmentError number
height readonly number
id readonly number
loaded? { bytes: number; duration: number; } (Optional)
loadError number
maxBitrate readonly number
name readonly string | undefined
pathwayId readonly string
realBitrate number
textGroupIds? (string | undefined)[] (Optional)
unknownCodecs readonly string[] | undefined
uri readonly string
url string[]
urlId number
videoCodec readonly string | undefined
width readonly number

Methods

Method Modifiers Description
addFallback(data)