Class: shaka.transmuxer.TransmuxerEngine

Manages transmuxer plugins.

Constructor

new TransmuxerEngine()

Manages transmuxer plugins.

Implements:
Source:

Members

PluginPriority :number

Priority level for transmuxer plugins. If multiple plugins are provided for the same mime type, only the highest-priority one is used.
Type:
  • number
Properties:
Name Value Type Description
FALLBACK 1 number
PREFERRED_SECONDARY 2 number
PREFERRED 3 number
APPLICATION 4 number
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

findTransmuxer(mimeType, contentTypeopt) → {shaka.extern.TransmuxerPlugin}

Parameters:
Name Type Attributes Description
mimeType string
contentType string <optional>
Source:
Returns:
Type
shaka.extern.TransmuxerPlugin

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

normalizeMimeType_(mimeType) → {string}

Parameters:
Name Type Description
mimeType string
Source:
Returns:
Type
string

registerTransmuxer(mimeType, pluginnon-null, priority)

Parameters:
Name Type Description
mimeType string
plugin shaka.extern.TransmuxerPlugin
priority number
Source:

unregisterTransmuxer(mimeType, priority)

Parameters:
Name Type Description
mimeType string
priority number
Source:

destroy() → {Promise}

Request that this object be destroyed, releasing all resources and shutting down all operations. Returns a Promise which is resolved when destruction is complete. This Promise should never be rejected.
Implements:
Source:
Returns:
Type
Promise

Type Definitions

PluginObject

Type:
Properties:
Name Type Description
plugin shaka.extern.TransmuxerPlugin The associated plugin.
priority number The plugin's priority.
Source: