Class: shaka.msf.MSFTransport

Constructor

new MSFTransport(confignon-null)

Parameters:
Name Type Description
config shaka.extern.MsfManifestConfiguration
Implements:
Source:

Members

webTransport_ :WebTransport

Type:
  • WebTransport
Source:

Methods

configure(confignon-null)

Parameters:
Name Type Description
config shaka.extern.MsfManifestConfiguration
Source:

connect(uri, fingerprintnullable, authorizationTokenopt, nullable) → {Promise<!shaka.extern.MsfSession>}

Parameters:
Name Type Attributes Description
uri string
fingerprint Uint8Array <nullable>
authorizationToken string <optional>
<nullable>
Source:
Returns:
Type
Promise<!shaka.extern.MsfSession>

fetchTrack(namespace, trackName, callback) → {Promise}

Fetch a track (one-shot retrieval instead of ongoing subscription)
Parameters:
Name Type Description
namespace Array<string>
trackName string
callback shaka.msf.Utils.ObjectCallback
Source:
Returns:
Type
Promise

getCodec() → {shaka.extern.MsfCodec}

The primitive codec of the draft that was negotiated, or null before a connection has been made. Packagings need it to read the MoQT-encoded fields their objects carry.
Source:
Returns:
Type
shaka.extern.MsfCodec

open_(uri, optionsnon-null, protocolsnon-null) → {Promise<!WebTransport>}

Opens a WebTransport connection offering the given subprotocols, and resolves once it is ready.
Parameters:
Name Type Description
uri string
options Object The connection options, minus the subprotocols.
protocols Array<string>
Source:
Returns:
Type
Promise<!WebTransport>

registerPublishNamespaceCallback(callback) → {function()}

Register a callback to be notified when a PublishNamespace message is received.
Parameters:
Name Type Description
callback function(Array<string>)
Source:
Returns:
A function to unregister the callback
Type
function()

release()

Request that this object release all internal references.
Implements:
Source:

subscribeTrack(namespace, trackName, callback) → {Promise<bigint>}

Subscribe to a track by namespace and track name
Parameters:
Name Type Description
namespace Array<string>
trackName string
callback shaka.msf.Utils.ObjectCallback
Source:
Returns:
Type
Promise<bigint>

unsubscribeTrack(trackAlias) → {Promise}

Unsubscribe from a track by track alias
Parameters:
Name Type Description
trackAlias bigint
Source:
Returns:
Type
Promise