Constructor

StreamInfo

new StreamInfo(codecs, mimeType, bitrates, language, name, role, hlsMediaInfo)

Parameter

codecs

string

Codecs required to play this stream.

mimeType

string

Mime type of the stream.

bitrates

Array of number

Available bitrates.

Value must not be null.

language

string

Stream language attribute.

Value may be null.

name

string

Stream name attribute.

Value may be null.

role

string

Stream role attribute.

Value may be null.

hlsMediaInfo

Optional

cast.player.api.HlsMediaInfo

Optional structure containing media information within the HLS stream's #EXT-X-MEDIA tag.

Value may be null.

Properties

bitrates

non-null Array of number

Available bitrates.

codecs

string

Codecs required to play this stream.

hlsMediaInfo

nullable cast.player.api.HlsMediaInfo

For HLS, contains media information within the #EXT-X-MEDIA tag for a stream rendition.

language

nullable string

Stream language attribute.

mimeType

string

Mime type of the stream.

name

nullable string

Stream name attribute.

role

nullable string

Stream role attribute.