Class: shaka.media.SegmentUtils

Utility functions for segment parsing.

Constructor

new SegmentUtils()

Utility functions for segment parsing.

Source:

Methods

filterDuplicateCodecs_(codecsnon-null) → {Array.<string>}

Parameters:
Name Type Description
codecs Array.<string>
Source:
Returns:
codecs
Type
Array.<string>

getBasicInfoFromMimeType(mimeType) → {shaka.media.SegmentUtils.BasicInfo}

Parameters:
Name Type Description
mimeType string
Source:
Returns:
Type
shaka.media.SegmentUtils.BasicInfo

getBasicInfoFromMp4(initDatanullable, datanon-null) → {shaka.media.SegmentUtils.BasicInfo}

Parameters:
Name Type Attributes Description
initData BufferSource <nullable>
data BufferSource
Source:
Returns:
Type
shaka.media.SegmentUtils.BasicInfo

getBasicInfoFromTs(datanon-null) → {shaka.media.SegmentUtils.BasicInfo}

Parameters:
Name Type Description
data BufferSource
Source:
Returns:
Type
shaka.media.SegmentUtils.BasicInfo

Type Definitions

BasicInfo

Type:
  • {type: string, mimeType: string, codecs: string, language: ?string, height: ?string, width: ?string, channelCount: ?number, sampleRate: ?number, closedCaptions: Map.<string, string>}
Properties:
Name Type Attributes Description
type string
mimeType string
codecs string
language string <nullable>
height string <nullable>
width string <nullable>
channelCount number <nullable>
sampleRate number <nullable>
closedCaptions Map.<string, string>
Source: