- 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) → {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 | Description |
|---|---|---|
namespace |
Array<string> | |
trackName |
string | |
callback |
shaka.extern.MsfObjectCallback |
- Source:
Returns:
- Type
- Promise<bigint>
unsubscribe(trackAlias) → {Promise}
Stops delivery for a subscription.
Parameters:
| Name | Type | Description |
|---|---|---|
trackAlias |
bigint |
- Source:
Returns:
- Type
- Promise