Constructor
new MssTransmuxer(mimeType)
Parameters:
Name | Type | Description |
---|---|---|
mimeType |
string |
- Implements:
- Source:
Members
Methods
addSpecificBoxProcessor_()
Add specific box processor for codem-isoboxer
- Source:
convertCodecs(contentType, mimeType) → {string}
For any stream, convert its codecs to MP4 codecs.
Parameters:
Name | Type | Description |
---|---|---|
contentType |
string | |
mimeType |
string |
- Implements:
- Source:
Returns:
- Type
- string
destroy()
Destroy
- Implements:
- Source:
getBoxOffset_(parent, type) → {number}
This function returns the offset of the 1st byte of a child box within
a container box.
Parameters:
Name | Type | Description |
---|---|---|
parent |
ISOBox | |
type |
string |
- Source:
Returns:
- Type
- number
getOriginalMimeType() → {string}
Returns the original mimetype of the transmuxer.
- Implements:
- Source:
Returns:
- Type
- string
isSupported(mimeType, contentTypeopt) → {boolean}
Check if the mime type and the content type is supported.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
mimeType |
string | ||
contentType |
string |
<optional> |
- Implements:
- Source:
Returns:
- Type
- boolean
processMediaSegment_(data, stream, reference) → {Uint8Array}
Process a media segment from a data and stream.
Parameters:
Name | Type | Description |
---|---|---|
data |
BufferSource | |
stream |
shaka.extern.Stream | |
reference |
shaka.media.SegmentReference |
- Source:
Returns:
- Type
- Uint8Array
transmux(data, stream, referencenullable, duration, contentType) → {Promise.<!Uint8Array>}
Transmux a input data to MP4.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
BufferSource | ||
stream |
shaka.extern.Stream | ||
reference |
shaka.media.SegmentReference |
<nullable> |
The segment reference, or null for init segments |
duration |
number | ||
contentType |
string |
- Implements:
- Source:
Returns:
- Type
- Promise.<!Uint8Array>