- Implementations:
- Extends:
- Source:
Extends
Methods
close(codeopt, reasonopt) → {Promise}
Closes the underlying transport.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
code |
number |
<optional> |
|
reason |
string |
<optional> |
- Source:
Returns:
- Type
- Promise
configure(confignon-null)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
shaka.extern.MsfManifestConfiguration |
- Source:
fetch(namespace, trackName, callback) → {Promise}
Retrieves a track once rather than subscribing to it. Resolves when the
request has been accepted; objects arrive on the callback.
Parameters:
| Name | Type | Description |
|---|---|---|
namespace |
Array<string> | |
trackName |
string | |
callback |
shaka.extern.MsfObjectCallback |
- Source:
Returns:
- Type
- Promise
onNamespacePublished(callback) → {function()}
Registers a callback for namespaces the peer announces it can serve.
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function(Array<string>) |
- Source:
Returns:
Unregisters the callback.
- Type
- function()
release()
Request that this object release all internal references.
- Inherited From:
- Source:
subscribe(namespace, trackName, callback, startLocationopt, nullable) → {Promise<bigint>}
Subscribes to a track, delivering its objects to the callback until
unsubscribed. Resolves with the track alias assigned by the publisher.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
namespace |
Array<string> | ||
trackName |
string | ||
callback |
shaka.extern.MsfObjectCallback | ||
startLocation |
shaka.extern.MsfLocation |
<optional> <nullable> |
Where delivery should begin, for a subscription that is not meant to start at the live edge, which is what a seek into published-but-not-yet-received content needs. Every draft carries it, though not alike: draft-14 as fields of the SUBSCRIBE message, draft-16 and draft-18 in the SUBSCRIPTION_FILTER parameter, draft-20 in LOCATION_FILTER. A publisher may still refuse it, in which case the subscription fails rather than silently starting somewhere else. |
- Source:
Returns:
- Type
- Promise<bigint>
unsubscribe(trackAlias) → {Promise}
Stops delivery for a subscription.
Parameters:
| Name | Type | Description |
|---|---|---|
trackAlias |
bigint |
- Source:
Returns:
- Type
- Promise