new MessageHandlers(options)
All incoming messages route through this hash. If no function exists
to handle an incoming message, then we ignore the message.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | the options to initialize with |
- Source:
Methods
flush()
Forces the pipeline to finish processing the last segment and emit its
results.
- Source:
flush(data)
Forces the pipeline to finish processing the last segment and emit it's
results.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | event data, not really used |
- Source:
init()
initialize our web worker and wire all the events.
- Source:
init()
initialize our web worker and wire all the events.
- Source:
push(data)
Adds data (a ts segment) to the start of the transmuxer pipeline for
processing.
Parameters:
Name | Type | Description |
---|---|---|
data |
ArrayBuffer | data to push into the muxer |
- Source:
push(data)
Adds data (a ts segment) to the start of the transmuxer pipeline for
processing.
Parameters:
Name | Type | Description |
---|---|---|
data |
ArrayBuffer | data to push into the muxer |
- Source:
reset()
Recreate the transmuxer so that the next segment added via `push`
start with a fresh transmuxer.
- Source:
reset()
Recreate the transmuxer so that the next segment added via `push`
start with a fresh transmuxer.
- Source:
setTimestampOffset(data)
Set the value that will be used as the `baseMediaDecodeTime` time for the
next segment pushed in. Subsequent segments will have their `baseMediaDecodeTime`
set relative to the first based on the PTS values.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | used to set the timestamp offset in the muxer |
- Source: