Home > hls.js > AttrList > (constructor)

AttrList.(constructor)

Constructs a new instance of the AttrList class

Signature:

constructor(attrs: string | Record<string, any>, parsed?: Pick<ParsedMultivariantPlaylist | LevelDetails, 'variableList' | 'hasVariableRefs' | 'playlistParsingError'>);

Parameters

Parameter

Type

Description

attrs

string | Record<string, any>

parsed

Pick<ParsedMultivariantPlaylist | LevelDetails, 'variableList' | 'hasVariableRefs' | 'playlistParsingError'>

(Optional)