Interface: shaka.extern.MsfDialect

Methods

connect(webTransportnon-null, confignon-null, authorizationTokenopt, nullable) → {Promise<!shaka.extern.MsfSession>}

Performs this draft's setup handshake over an established WebTransport connection and returns the resulting session. The handshake is part of the dialect because it is not stable across drafts: draft-16 opens a single bidirectional stream and exchanges CLIENT_SETUP and SERVER_SETUP over it, while draft-17 collapsed the two into one SETUP message sent on each of a pair of unidirectional streams.
Parameters:
Name Type Attributes Description
webTransport WebTransport
config shaka.extern.MsfManifestConfiguration
authorizationToken string <optional>
<nullable>
Source:
Returns:
Type
Promise<!shaka.extern.MsfSession>

getCodec() → {shaka.extern.MsfCodec}

The primitive codec for this draft, which encodes and decodes the variable-length integers every other field is built from.
Source:
Returns:
Type
shaka.extern.MsfCodec

getDraftNumber() → {number}

The draft number, e.g. 16. Used to order dialects by preference during negotiation, newest first.
Source:
Returns:
Type
number

getName() → {string}

The draft name, matching the shaka.config.MsfVersion value this dialect is registered under, e.g. 'draft-16'.
Source:
Returns:
Type
string

getSubprotocol() → {string}

The WebTransport subprotocol string that selects this draft, e.g. 'moqt-16'.
Source:
Returns:
Type
string

Type Definitions

Factory

A factory for creating a MoQT dialect. This function is registered with shaka.msf.DialectRegistry to create dialect instances.
Type:
  • function(): !shaka.extern.MsfDialect
Source: