- Implementations:
- shaka.transmuxer.AacTransmuxer
- shaka.transmuxer.AacTransmuxer
- shaka.transmuxer.Ac3Transmuxer
- shaka.transmuxer.Ac3Transmuxer
- shaka.transmuxer.Ec3Transmuxer
- shaka.transmuxer.Ec3Transmuxer
- shaka.transmuxer.Mp3Transmuxer
- shaka.transmuxer.Mp3Transmuxer
- shaka.transmuxer.MpegTsTransmuxer
- shaka.transmuxer.MpegTsTransmuxer
- shaka.transmuxer.MssTransmuxer
- shaka.transmuxer.MssTransmuxer
- shaka.transmuxer.MuxjsTransmuxer
- shaka.transmuxer.MuxjsTransmuxer
- shaka.transmuxer.TsTransmuxer
- shaka.transmuxer.TsTransmuxer
- Source:
Methods
convertCodecs(contentType, mimeType) → {string}
For any stream, convert its codecs to MP4 codecs.
Parameters:
Name | Type | Description |
---|---|---|
contentType |
string | |
mimeType |
string |
- Source:
Returns:
- Type
- string
getOrginalMimeType() → {string}
Returns the original mimetype of the transmuxer.
- 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> |
- Source:
Returns:
- Type
- boolean
transmux(data, stream, referencenullable, duration) → {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 |
- Source:
Returns:
- Type
- Promise.<!Uint8Array>