Methods
createSegmenter() → {shaka.extern.MsfSegmenter}
Creates a segmenter for the track this instance described. Called each
time the stream's segment index is created, so a track that is unsubscribed
and resubscribed starts from a clean segmenter.
- Source:
Returns:
describeTrack(track, initDatanon-null) → {shaka.extern.MsfTrackDescription}
Inspects a catalog track and describes how to present it, or returns null
if this packaging cannot handle the track, in which case the track is
skipped. Called once per track, before any objects arrive.
Parameters:
| Name | Type | Description |
|---|---|---|
track |
msfCatalog.Track | |
initData |
Uint8Array | The track's resolved initialization data, empty when the catalog carries none. Its meaning is packaging-specific: an MP4 initialization segment for CMAF, PAT/PMT transport packets for m2ts. |
- Source:
Returns:
Type Definitions
Factory
A factory for creating a packaging. This function is registered with
shaka.msf.PackagingRegistry to create packaging instances.
Type:
- function(): !shaka.extern.MsfPackaging
- Source: