MoqTrackSource
Defined in: relay-sdks/ts/packages/moq-core/dist/track-source.d.ts:6
Borrowed access to tracks on a session. Consumers own their requests; only the connection owner can close the underlying transport. No media format is implied.
Extends
Section titled “Extends”Pick<MoqtSession,"subscribe"|"fetch"|"trackStatus">
Properties
Section titled “Properties”closed
Section titled “closed”readonly closed: Promise<{ error?: unknown;}>;Defined in: relay-sdks/ts/packages/moq-core/dist/track-source.d.ts:8
Resolves when the owning connection ends; an error denotes failure.
Methods
Section titled “Methods”fetch()
Section titled “fetch()”fetch(options, handlers?): FetchHandle;Defined in: relay-sdks/ts/packages/moq-core/dist/protocol/session.d.ts:307
Send FETCH (§9.11) on a new request stream. Results arrive through handlers.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
MoqtSubscribeOptions |
handlers? |
FetchHandlers |
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Pick.fetch
subscribe()
Section titled “subscribe()”subscribe(options, handlers?): Subscription;Defined in: relay-sdks/ts/packages/moq-core/dist/protocol/session.d.ts:305
Send SUBSCRIBE (§9.6) on a new request stream. Results arrive through handlers.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
MoqtSubscribeOptions |
handlers? |
SubscriptionHandlers |
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Pick.subscribe
trackStatus()
Section titled “trackStatus()”trackStatus(options, handlers?): void;Defined in: relay-sdks/ts/packages/moq-core/dist/protocol/session.d.ts:309
Send TRACK_STATUS (§9.13) on a new request stream and report its one response through handlers.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
MoqtSubscribeOptions |
handlers? |
TrackStatusHandlers |
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Pick.trackStatus