Class: shaka.transmuxer.BaseTransmuxer

Constructor

new BaseTransmuxer(mimeType)

Parameters:
Name Type Description
mimeType string
Source:

Members

frameIndex :number

Type:
  • number
Source:

initSegments :Map<string, !Uint8Array>

Type:
  • Map<string, !Uint8Array>
Source:

lastInitSegment_ :Uint8Array

Type:
  • Uint8Array
Source:

originalMimeType_ :string

Type:
  • string
Source:

Methods

getId3Timestamp(id3Datanon-null, defaultTimestamp) → {number}

Reads the transport-stream timestamp carried in the given ID3 data (the 'com.apple.streaming.transportStreamTimestamp' frame), if present, falling back to the provided default otherwise.
Parameters:
Name Type Description
id3Data Uint8Array
defaultTimestamp number
Source:
Returns:
Type
number

getOriginalMimeType() → {string}

Source:
Returns:
Type
string

packageSegment(mp4Generatornon-null, stream, referencenullable) → {shaka.extern.TransmuxerOutput}

Packages the init and media segments produced by the given Mp4Generator. The init segment is cached per discontinuity and the running frame index is advanced. The init segment is only (re)appended when it differs from the last one used.
Parameters:
Name Type Attributes Description
mp4Generator shaka.util.Mp4Generator
stream shaka.extern.Stream
reference shaka.media.SegmentReference <nullable>
Source:
Returns:
Type
shaka.extern.TransmuxerOutput