Skip to content

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.

  • Pick<MoqtSession, "subscribe" | "fetch" | "trackStatus">
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.

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.

Parameter Type
options MoqtSubscribeOptions
handlers? FetchHandlers

FetchHandle

Pick.fetch


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.

Parameter Type
options MoqtSubscribeOptions
handlers? SubscriptionHandlers

Subscription

Pick.subscribe


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.

Parameter Type
options MoqtSubscribeOptions
handlers? TrackStatusHandlers

void

Pick.trackStatus