@caprid/moq-core 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NOTICE CHANGED
@@ -1,4 +1,4 @@
1
- The protocol implementation and its initial tests are derived from Video.js.
1
+ The protocol implementation and its tests are derived from Video.js.
2
2
  Copyright 2025-present Video.js contributors.
3
3
  Licensed under the Apache License, Version 2.0. See LICENSE.
4
4
 
package/README.md CHANGED
@@ -1,27 +1,72 @@
1
1
  # Generic MoQ core
2
2
 
3
- An independently buildable package for MOQT sessions and arbitrary track objects. It has no runtime
4
- dependencies and does not import Relay product code or Video.js.
3
+ `@caprid/moq-core` runs MOQT sessions that carry arbitrary track objects. It has no runtime dependencies and does not
4
+ import Relay product code or Video.js.
5
5
 
6
- `createMoqtSession` owns the supplied established transport. Subscribe, fetch, and track-status
7
- requests use callback handlers, preserve uninterpreted payloads and object properties, and expose
8
- protocol lifecycle notifications. `MoqTrackSource` describes borrowed track access without shutdown.
6
+ The core speaks MOQT draft 22, and draft 20 with a peer that selects it. It receives subscription objects over reliable
7
+ streams. It does not implement application timing, decoding, datagram reception, or automatic session recovery.
9
8
 
10
- The implementation and regression tests originate in Video.js under Apache-2.0. This initial
11
- extraction preserves the wire implementation; ESM imports, test-runner imports, and the default SETUP implementation identifier are adapted.
12
- See `NOTICE` and `UPSTREAM.json`. The original Video.js modules remain pending dependency migration.
9
+ ## Subscribe side
13
10
 
14
- This package follows MOQT draft 22, and draft 20 for a peer that selects it, and receives subscription objects over reliable streams. It does
15
- not implement application timing, decoding, datagram reception, or automatic session recovery.
11
+ `createMoqtSession` takes an established transport and owns it from then on. Subscribe, fetch, and track-status requests
12
+ take callback handlers. They pass payloads and object properties through uninterpreted and report protocol lifecycle
13
+ notifications. `MoqTrackSource` is borrowed access to a session's `subscribe`, `fetch`, and `trackStatus`: a holder can
14
+ make requests but cannot close the transport.
16
15
 
17
- `createMoqtPublishSession` serves a namespace and its registered tracks over a separate transport.
18
- The extracted publish driver excludes SPF actors and media dependencies. Track properties are
19
- explicit, with no default media timescale. `createSubgroupWriter` writes arbitrary object payloads
20
- and metadata; the SDK supplies the bounded, single-object-group publishing policy above it.
16
+ ## Publish side
21
17
 
22
- For Relay application usage and local installation, start with the [JavaScript quickstart](../../GUIDE.md#first-round-trip).
18
+ `createMoqtPublishSession` serves a namespace and its registered tracks over a separate transport. Track properties are
19
+ explicit, so a track has no default media timescale. `createSubgroupWriter` writes arbitrary object payloads and
20
+ metadata. The publishing policy above it, such as `@caprid/relay`'s bounded single-object groups, belongs to the SDK.
21
+
22
+ Two publish-session hooks serve embedders that track more than the SDK does:
23
+
24
+ - A registered track's `getLargestObject` puts `LARGEST_OBJECT` in SUBSCRIBE_OK and REQUEST_OK. The session keeps no
25
+ objects, so it answers a nonempty fill request with a fill fetch stream that it resets after the FETCH_HEADER.
26
+ - `end({ after })` holds a track's end until a last group is written. It also holds during an orderly close.
27
+
28
+ ## Wire helpers
29
+
30
+ The package index also exports the wire constants and pure helpers that an embedder needs around a session:
31
+ `TRACK_PROPERTY`, `compareLocations`, `isEmptyFetchRange`, `encodeFetchHeader`, `isRetryableRequestErrorCode`,
32
+ `isRetryablePublishDoneStatus`, `utf8Decode`, and the close bounds `CLOSE_FLUSH_TIMEOUT_MS` and
33
+ `CLOSE_END_ACK_TIMEOUT_MS`.
34
+
35
+ ## Standing in for a relay
36
+
37
+ A test that plays the relay's end against a publish session needs two things the client surface leaves out.
38
+
39
+ `createMoqtSession(transport, { perspective: 'server' })` allocates the server's Request IDs, odd and starting at 1,
40
+ and requires the peer's to be even (§6.4.2.1). The default, `'client'`, allocates even IDs from 0 and requires odd
41
+ ones. A publish session is always the client and takes each SUBSCRIBE's Request ID as the subscription's Track Alias,
42
+ so a server-perspective session's first two subscriptions get aliases 1 and 3.
43
+
44
+ `@caprid/moq-core/wire` exports the codec for driving a session byte by byte, under the same semver as the index:
45
+ `StreamReader` and `utf8Encode`; `ControlMessageDeframer`, `decodeControlMessage` and the `ControlMessage` type;
46
+ `encodeSetup`, `encodeSubscribe`, `encodeSubscribeOk`, `encodeSubscribeNamespace`, `encodePublish`,
47
+ `encodePublishDone`, `encodeRequestError` and `encodeGoaway`; `STREAM_TYPE`, `isSubgroupHeaderType`,
48
+ `readSubgroupHeader`, `readSubgroupObjects` and `readFetchHeader`; `encodeVarint` and `decodeVarint`. Import from it
49
+ rather than from `dist/protocol/*`, whose layout is not part of the API.
50
+
51
+ ```ts
52
+ import { createMoqtPublishSession, createMoqtSession } from '@caprid/moq-core';
53
+ import { encodeSubscribe } from '@caprid/moq-core/wire';
54
+
55
+ const publisher = createMoqtPublishSession(pair.client);
56
+ const relay = createMoqtSession(pair.server, { perspective: 'server' });
57
+ // relay.subscribe(...) sends Request IDs 1, 3, 5, ...; a raw SUBSCRIBE from encodeSubscribe needs an odd one too.
58
+ ```
59
+
60
+ ## Provenance
61
+
62
+ The implementation and its regression tests come from Video.js, under Apache-2.0. `UPSTREAM.json` records the source
63
+ revision, the original file hashes, and every change made since, and `NOTICE` carries the attribution. Video.js still
64
+ has its own copy of these modules. Moving Video.js onto this package is a separate step.
65
+
66
+ For Relay application usage and local installation, start with the
67
+ [JavaScript quickstart](https://github.com/caprids/relay-sdks/blob/main/ts/GUIDE.md#first-round-trip).
23
68
 
24
69
  ## Stability
25
70
 
26
- Before 1.0, a minor version can break the API. This package releases together with `@caprid/relay`
27
- at the same version; see the [changelog](../../CHANGELOG.md).
71
+ Before 1.0, a minor version can break the API. This package releases together with `@caprid/relay` at the same version.
72
+ See the [changelog](https://github.com/caprids/relay-sdks/blob/main/ts/CHANGELOG.md).
package/UPSTREAM.json CHANGED
@@ -28,7 +28,12 @@
28
28
  "An orderly publish session close, after the bounded write drain, also waits (`CLOSE_END_ACK_TIMEOUT_MS`, 2 s) for the peer to end its side of every request stream it is still serving before closing the transport, instead of the upstream close right after the write drain. moq-relay FINs that side only after it has read PUBLISH_DONE and finished the track; a transport closed sooner aborts the track and viewers see PUBLISH_DONE status 0 (spec/behavior.md, \"Relay interop deviations\"; issue #25).",
29
29
  "The subscribe session FINs its side of a subscription's request stream once the publisher's FIN follows PUBLISH_DONE, as draft-22 Section 6.4.2.2 says a requester SHOULD, instead of the upstream driver leaving it open. A publisher closing waits for that FIN before closing the transport, so an SDK publisher closing ahead of an SDK subscriber no longer waits out the 2 s bound. A follow-up message on a request stream whose sending side has ended writes nothing (spec/behavior.md, \"Relay interop deviations\"; issue #142).",
30
30
  "The package index also re-exports the types that public signatures reference, and TSDoc comments were added to exported declarations for the generated API reference (issue #179); code is unchanged.",
31
- "The core speaks moq-transport draft-22 by default and draft-20 as a fallback, where the upstream snapshot speaks draft-20 only. The two differ on the wire only in the LOCATION_FILTER parameter (draft-22 Section 9.20.9: a Location Filter Type selects the fields and there is no length; draft-20 length-prefixes the fields), so the codec takes the negotiated identifier: `MOQT_PROTOCOL_IDS` lists both in preference order, each session reads `transport.protocol` through `resolveMoqtProtocol`, and every encoder and decoder that carries message parameters takes a trailing `protocol` argument that defaults to `moqt-22`. Section citations in the protocol modules follow draft-22's numbering (docs/research/moqt-22-delta.md; issue #274)."
31
+ "The core speaks moq-transport draft-22 by default and draft-20 as a fallback, where the upstream snapshot speaks draft-20 only. The two differ on the wire only in the LOCATION_FILTER parameter (draft-22 Section 9.20.9: a Location Filter Type selects the fields and there is no length; draft-20 length-prefixes the fields), so the codec takes the negotiated identifier: `MOQT_PROTOCOL_IDS` lists both in preference order, each session reads `transport.protocol` through `resolveMoqtProtocol`, and every encoder and decoder that carries message parameters takes a trailing `protocol` argument that defaults to `moqt-22`. Section citations in the protocol modules follow draft-22's numbering (docs/research/moqt-22-delta.md; issue #274).",
32
+ "Later upstream changes ported from Video.js v10 (branch mmcc/moq-publisher): `isEmptyFetchRange` and `encodeFetchHeader` (f1067b323e2690e41b1fa3455cf33a1348c8d6bf); the publish session's LARGEST_OBJECT reporting through `RegisterTrackOptions.getLargestObject` (73f42e4a9090be86baa30ddbffa663e18bb632ab, f1067b323e2690e41b1fa3455cf33a1348c8d6bf); failing a nonempty fill with a fill fetch stream reset after its FETCH_HEADER, on SUBSCRIBE and REQUEST_UPDATE, counted in PUBLISH_DONE's Stream Count (f1067b323e2690e41b1fa3455cf33a1348c8d6bf, 8f3e84fe5a61215378d47cadbecfd32f0b36135a, f0577b432d4ea0dbad691cb310aca9e2c24c959c); and `RegisteredTrack.end({ after })` (bdd65558f83eb954f387981a2f950a099297c171). Section citations use draft-22 numbering. Their tests are ported into publish-fill.test.ts and publish-end-after.test.ts.",
33
+ "Fill fetch streams are data streams of their subscription in this core: PUBLISH_DONE waits for a fill's open as it does for `openUniStream()`, so a fill still opening when its subscription ends delays PUBLISH_DONE until the open settles and is then reset with no header and left out of the Stream Count, where upstream writes PUBLISH_DONE without waiting. Upstream's per-track `getStreamCount` callback and the unknown (2^64-1) Stream Count are not ported: this core counts every data stream itself.",
34
+ "`openUniStream()` still refuses once `close()` has begun, except for a live subscription of a track whose `end({ after })` is waiting; upstream accepts every open during the close drain. `close()` waits for `after` within `CLOSE_FLUSH_TIMEOUT_MS` and then ends that track's subscriptions anyway, where upstream closes the transport with the end still pending.",
35
+ "`MoqtTransport.protocol` is optional: a transport that reports none gets the moqt-22 codec, as one reporting an unknown identifier already did.",
36
+ "`createMoqtSession` takes `perspective: 'client' | 'server'` (#367): a server-perspective session allocates odd Request IDs from 1 and requires the peer's to be even, so a test can stand it in for the relay against a publish session; upstream's driver is always the client. The `./wire` entry point re-exports codec pieces for such tests and adds doc comments only."
32
37
  ],
33
38
  "migration": "Initial extraction snapshot. Video.js still contains the original modules; migrating it to this independently versioned package is a separate integration step. Do not maintain divergent protocol implementations."
34
39
  }
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export { ByteWriter } from './protocol/bytes.js';
1
+ export { ByteWriter, utf8Decode } from './protocol/bytes.js';
2
2
  export type { FillParameters, GroupOrder, KeyValuePair, Location, LocationFilter, MessageParameters, MoqtProtocolId, Redirect, TrackNamespace, } from './protocol/control-messages.js';
3
- export { encodeKeyValuePairs, encodeRequestUpdate, MAX_NAMESPACE_FIELDS, MOQT_PROTOCOL_ID, MOQT_PROTOCOL_IDS, PUBLISH_DONE_STATUS, REQUEST_ERROR_CODE, SETUP_OPTION, } from './protocol/control-messages.js';
3
+ export { compareLocations, encodeKeyValuePairs, encodeRequestUpdate, isEmptyFetchRange, isRetryablePublishDoneStatus, isRetryableRequestErrorCode, MAX_NAMESPACE_FIELDS, MOQT_PROTOCOL_ID, MOQT_PROTOCOL_IDS, PUBLISH_DONE_STATUS, REQUEST_ERROR_CODE, SETUP_OPTION, TRACK_PROPERTY, } from './protocol/control-messages.js';
4
4
  export type { SessionErrorCode } from './protocol/errors.js';
5
5
  export { isMoqtProtocolError, MoqtProtocolError, SESSION_ERROR } from './protocol/errors.js';
6
6
  export type { FetchEndOfRangeStatus, FetchStreamEntry, MoqtObject, ObjectStatus } from './protocol/object-stream.js';
7
- export { MAX_OBJECT_PAYLOAD_LENGTH, MAX_OBJECT_PROPERTIES_LENGTH } from './protocol/object-stream.js';
7
+ export { encodeFetchHeader, MAX_OBJECT_PAYLOAD_LENGTH, MAX_OBJECT_PROPERTIES_LENGTH, } from './protocol/object-stream.js';
8
8
  export type { IncomingSubscribe, MoqtPublishSession, MoqtPublishSessionCallbacks, MoqtPublishSessionConfig, RegisteredTrack, RegisterTrackOptions, } from './protocol/publish-session.js';
9
- export { createMoqtPublishSession, MAX_TRACK_PROPERTIES_LENGTH } from './protocol/publish-session.js';
9
+ export { CLOSE_END_ACK_TIMEOUT_MS, CLOSE_FLUSH_TIMEOUT_MS, createMoqtPublishSession, MAX_TRACK_PROPERTIES_LENGTH, } from './protocol/publish-session.js';
10
10
  export type { BidirectionalStreamLike } from './protocol/request-stream.js';
11
11
  export type { FetchHandle, FetchHandlers, FetchOk, Goaway, IncomingPublish, MoqtFetchOptions, MoqtSendStreamOptions, MoqtSession, MoqtSessionCallbacks, MoqtSessionConfig, MoqtSubscribeNamespaceOptions, MoqtSubscribeOptions, MoqtTransport, NamespaceSubscription, NamespaceSubscriptionHandlers, PublishDone, RequestError, SubscribeOk, Subscription, SubscriptionHandlers, TrackStatusHandlers, } from './protocol/session.js';
12
12
  export { createMoqtSession, isStreamFailure } from './protocol/session.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,YAAY,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,QAAQ,EACR,cAAc,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7F,YAAY,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACrH,OAAO,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AACtG,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,wBAAwB,EACxB,eAAe,EACf,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACtG,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,YAAY,EACV,WAAW,EACX,aAAa,EACb,OAAO,EACP,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,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AAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACrH,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,wBAAwB,EACxB,eAAe,EACf,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,YAAY,EACV,WAAW,EACX,aAAa,EACb,OAAO,EACP,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,6BAA6B,EAC7B,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,6BAA6B,EAC7B,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC/E,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { ByteWriter } from './protocol/bytes.js';
2
- export { encodeKeyValuePairs, encodeRequestUpdate, MAX_NAMESPACE_FIELDS, MOQT_PROTOCOL_ID, MOQT_PROTOCOL_IDS, PUBLISH_DONE_STATUS, REQUEST_ERROR_CODE, SETUP_OPTION, } from './protocol/control-messages.js';
1
+ export { ByteWriter, utf8Decode } from './protocol/bytes.js';
2
+ export { compareLocations, encodeKeyValuePairs, encodeRequestUpdate, isEmptyFetchRange, isRetryablePublishDoneStatus, isRetryableRequestErrorCode, MAX_NAMESPACE_FIELDS, MOQT_PROTOCOL_ID, MOQT_PROTOCOL_IDS, PUBLISH_DONE_STATUS, REQUEST_ERROR_CODE, SETUP_OPTION, TRACK_PROPERTY, } from './protocol/control-messages.js';
3
3
  export { isMoqtProtocolError, MoqtProtocolError, SESSION_ERROR } from './protocol/errors.js';
4
- export { MAX_OBJECT_PAYLOAD_LENGTH, MAX_OBJECT_PROPERTIES_LENGTH } from './protocol/object-stream.js';
5
- export { createMoqtPublishSession, MAX_TRACK_PROPERTIES_LENGTH } from './protocol/publish-session.js';
4
+ export { encodeFetchHeader, MAX_OBJECT_PAYLOAD_LENGTH, MAX_OBJECT_PROPERTIES_LENGTH, } from './protocol/object-stream.js';
5
+ export { CLOSE_END_ACK_TIMEOUT_MS, CLOSE_FLUSH_TIMEOUT_MS, createMoqtPublishSession, MAX_TRACK_PROPERTIES_LENGTH, } from './protocol/publish-session.js';
6
6
  export { createMoqtSession, isStreamFailure } from './protocol/session.js';
7
7
  export { streamResetReason } from './protocol/stream-reset.js';
8
8
  export { createSubgroupWriter } from './protocol/subgroup-writer.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAYjD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,GACb,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,mBAAm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AAa,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1,4 +1,6 @@
1
+ /** Encode a string as UTF-8 bytes, as track names and reason phrases go on the wire. */
1
2
  export declare function utf8Encode(value: string): Uint8Array;
3
+ /** Decode UTF-8 bytes, such as a text object's payload, replacing malformed sequences with U+FFFD. */
2
4
  export declare function utf8Decode(bytes: Uint8Array): string;
3
5
  /** Synchronous cursor over a byte buffer. All reads throw `RangeError` past the end. */
4
6
  export declare class ByteReader {
@@ -48,11 +50,15 @@ export declare class StreamReader {
48
50
  constructor(stream: ReadableStream<Uint8Array>);
49
51
  /** True when the stream ended cleanly with no bytes left unread. */
50
52
  atEnd(): Promise<boolean>;
53
+ /** Read exactly `length` bytes. */
51
54
  readBytes(length: number): Promise<Uint8Array>;
55
+ /** Read one byte. */
52
56
  readUint8(): Promise<number>;
57
+ /** Read one MOQT varint (§8.1). */
53
58
  readVarint(): Promise<number>;
54
59
  /** Cancel the underlying stream (e.g. drop an unwanted data stream). */
55
60
  cancel(reason?: unknown): Promise<void>;
61
+ /** Release the underlying stream's reader lock without cancelling it. */
56
62
  releaseLock(): void;
57
63
  }
58
64
  //# sourceMappingURL=bytes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../src/protocol/bytes.ts"],"names":[],"mappings":"AAYA,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAEpD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEpD;AAED,wFAAwF;AACxF,qBAAa,UAAU;;gBAIT,KAAK,EAAE,UAAU,EAAE,MAAM,SAAI;IAKzC,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,UAAU,IAAI,MAAM;IAOpB;;;;OAIG;IACH,eAAe,IAAI,MAAM,GAAG,SAAS;IAYrC,SAAS,IAAI,MAAM;IAMnB,UAAU,IAAI,MA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WAAW,IAAI,IAAI;CAGpB"}
@@ -8,9 +8,11 @@
8
8
  import { decodeVarint, encodeVarintInto, varintByteLength, varintLengthFromFirstByte } from './varint.js';
9
9
  const textEncoder = new TextEncoder();
10
10
  const textDecoder = new TextDecoder();
11
+ /** Encode a string as UTF-8 bytes, as track names and reason phrases go on the wire. */
11
12
  export function utf8Encode(value) {
12
13
  return textEncoder.encode(value);
13
14
  }
15
+ /** Decode UTF-8 bytes, such as a text object's payload, replacing malformed sequences with U+FFFD. */
14
16
  export function utf8Decode(bytes) {
15
17
  return textDecoder.decode(bytes);
16
18
  }
@@ -179,14 +181,17 @@ export class StreamReader {
179
181
  }
180
182
  return false;
181
183
  }
184
+ /** Read exactly `length` bytes. */
182
185
  async readBytes(length) {
183
186
  await this.#fill(length);
184
187
  return this.#take(length);
185
188
  }
189
+ /** Read one byte. */
186
190
  async readUint8() {
187
191
  await this.#fill(1);
188
192
  return this.#take(1)[0];
189
193
  }
194
+ /** Read one MOQT varint (§8.1). */
190
195
  async readVarint() {
191
196
  await this.#fill(1);
192
197
  const firstByte = this.#chunks[0][0];
@@ -203,6 +208,7 @@ export class StreamReader {
203
208
  this.#reader.releaseLock();
204
209
  }
205
210
  }
211
+ /** Release the underlying stream's reader lock without cancelling it. */
206
212
  releaseLock() {
207
213
  this.#reader.releaseLock();
208
214
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bytes.js","sourceRoot":"","sources":["../../src/protocol/bytes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE1G,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;AACtC,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;AAEtC,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,OAAO,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC;AAED,MA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;QACb,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC;IAC3B,CAAC;IAED,mCAAmC;IACnC,KAAK,CAAC,UAAU;QACd,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpB,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC;QACvC,MAAM,UAAU,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAC;QAExD,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC7B,OAAO,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC;IACpD,CAAC;IAED,wEAAwE;IACxE,KAAK,CAAC,MAAM,CAAC,MAAgB;QAC3B,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;QAC7B,CAAC;IACH,CAAC;IAED,yEAAyE;IACzE,WAAW;QACT,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;CACF"}
@@ -34,11 +34,11 @@ export type MoqtProtocolId = (typeof MOQT_PROTOCOL_IDS)[number];
34
34
  /** The preferred protocol identifier, and the codec's default when a caller names none. */
35
35
  export declare const MOQT_PROTOCOL_ID: MoqtProtocolId;
36
36
  /**
37
- * The codec for a transport's negotiated `protocol`. The connecting layer refuses any protocol outside
37
+ * The codec for a transport's negotiated `protocol`. The SDK's connecting layer refuses any protocol outside
38
38
  * `MOQT_PROTOCOL_IDS` before a session starts (spec/transport-adapter.md TA-8), so a value outside it here (a test
39
- * transport that names none) gets the default.
39
+ * transport, or an embedder's transport that cannot report one) gets the default, `moqt-22`.
40
40
  */
41
- export declare function resolveMoqtProtocol(protocol: string): MoqtProtocolId;
41
+ export declare function resolveMoqtProtocol(protocol: string | undefined): MoqtProtocolId;
42
42
  /** Control/request message type codes (§9, Table 5). */
43
43
  export declare const MESSAGE_TYPE: {
44
44
  readonly SETUP: 12032;
@@ -189,7 +189,10 @@ export declare const PUBLISH_DONE_STATUS: {
189
189
  * that time can fix; the permanent family reflects the request itself and loops forever if retried.
190
190
  */
191
191
  export declare function isRetryableRequestErrorCode(errorCode: number): boolean;
192
- /** Whether a PUBLISH_DONE'd subscription is worth re-subscribing. */
192
+ /**
193
+ * Whether a subscription that ended with PUBLISH_DONE `statusCode` is worth re-subscribing. Every status but the
194
+ * permanent ones (`UNAUTHORIZED`, `EXPIRED`, `MALFORMED_TRACK`) is.
195
+ */
193
196
  export declare function isRetryablePublishDoneStatus(statusCode: number): boolean;
194
197
  /** Stream reset / STOP_SENDING error codes (§12.5). */
195
198
  export declare const STREAM_RESET_CODE: {
@@ -215,7 +218,10 @@ export interface Location {
215
218
  /** Object ID within the group. */
216
219
  object: number;
217
220
  }
218
- /** `A < B` in Location order (group first, then object). */
221
+ /**
222
+ * Compare two Locations in Location order (§8.2): group first, then object. Negative when `a` precedes `b`, zero when
223
+ * they are equal, positive when `a` follows `b`, so it sorts with `Array.prototype.sort`.
224
+ */
219
225
  export declare function compareLocations(a: Location, b: Location): number;
220
226
  /** Track namespace as an ordered tuple of UTF-8 fields. Byte strings on the wire; MSF constrains them to UTF-8 text. */
221
227
  export type TrackNamespace = string[];
@@ -284,6 +290,16 @@ export type LocationFilter = {
284
290
  export declare function encodeLocationFilter(filter: LocationFilter, protocol?: MoqtProtocolId): Uint8Array;
285
291
  /** Decode a LOCATION_FILTER value as `encodeLocationFilter` produces it; every byte must belong to the filter. */
286
292
  export declare function decodeLocationFilter(bytes: Uint8Array, protocol?: MoqtProtocolId): LocationFilter;
293
+ /**
294
+ * Whether a Location filter, evaluated with the fetch rules of §9.20.9, selects no Objects. A fetch range, and so a
295
+ * subscription's fill range (§3.4), never extends beyond Largest Object: with no Largest Object nothing exists to fetch,
296
+ * the Next Object and the Next Group both lie past it, an absolute start past it selects nothing, and a bounded
297
+ * absolute range whose end precedes its start is empty. A publisher opens no fill fetch stream for an empty range.
298
+ *
299
+ * @param filter - The fill range's filter: the one inside FILL_PARAMETERS, else the subscription's, else `none`.
300
+ * @param largestObject - The track's Largest Object, `undefined` when nothing has been published yet.
301
+ */
302
+ export declare function isEmptyFetchRange(filter: LocationFilter, largestObject: Location | undefined): boolean;
287
303
  /** GROUP_ORDER: the order in which the publisher delivers groups. */
288
304
  export type GroupOrder = 'ascending' | 'descending';
289
305
  /**
@@ -350,7 +366,9 @@ export declare function decodeMessageParameters(reader: ByteReader, protocol?: M
350
366
  export declare function encodeAuthTokenUseValue(tokenType: number, value: Uint8Array): Uint8Array;
351
367
  /** A decoded frame: message type + body bytes (not yet interpreted). */
352
368
  export interface ControlMessageFrame {
369
+ /** The Message Type. */
353
370
  type: number;
371
+ /** The message body, without the type and length. */
354
372
  body: Uint8Array;
355
373
  }
356
374
  /**
@@ -359,16 +377,22 @@ export interface ControlMessageFrame {
359
377
  */
360
378
  export declare class ControlMessageDeframer {
361
379
  #private;
380
+ /** Append `chunk` and return every frame it completed, in order; a partial frame stays buffered. */
362
381
  push(chunk: Uint8Array): ControlMessageFrame[];
363
382
  /** Bytes buffered but not yet forming a complete frame. */
364
383
  get pendingBytes(): number;
365
384
  }
366
385
  /** SETUP (§9.1) — first message on the endpoint's control stream. */
367
386
  export declare function encodeSetup(options?: readonly KeyValuePair[]): Uint8Array;
387
+ /** The body of a SUBSCRIBE, TRACK_STATUS or FETCH: Request ID, Full Track Name, Parameters. */
368
388
  export interface SubscribeRequest {
389
+ /** The sender's Request ID (§6.4.2.1). */
369
390
  requestId: number;
391
+ /** The track's namespace. */
370
392
  trackNamespace: TrackNamespace;
393
+ /** The track's name. */
371
394
  trackName: string;
395
+ /** Message parameters; none when omitted. */
372
396
  parameters?: MessageParameters | undefined;
373
397
  }
374
398
  /**
@@ -383,9 +407,13 @@ export declare function encodeSubscribe(request: SubscribeRequest, protocol?: Mo
383
407
  export declare function encodeTrackStatus(request: SubscribeRequest, protocol?: MoqtProtocolId): Uint8Array;
384
408
  /** FETCH (§9.11) — first message on a new request stream. */
385
409
  export declare function encodeFetch(request: FetchRequest, protocol?: MoqtProtocolId): Uint8Array;
410
+ /** The body of a SUBSCRIBE_NAMESPACE (§9.15). */
386
411
  export interface SubscribeNamespaceRequest {
412
+ /** The sender's Request ID (§6.4.2.1). */
387
413
  requestId: number;
414
+ /** The namespace prefix to hear about. */
388
415
  trackNamespacePrefix: TrackNamespace;
416
+ /** Message parameters; none when omitted. */
389
417
  parameters?: MessageParameters | undefined;
390
418
  }
391
419
  /** SUBSCRIBE_NAMESPACE (§9.15) — first message on a new request stream. */
@@ -405,10 +433,11 @@ export declare function encodeGoaway(timeout?: number): Uint8Array;
405
433
  * REQUEST_OK (§9.3). The subscriber sends this to accept an incoming PUBLISH (PUBLISH_OK). Track Properties are always
406
434
  * empty in that role, and since draft-20 so are the parameters — a subscriber changes subscription parameters with
407
435
  * REQUEST_UPDATE, not in PUBLISH_OK (§9.8); the session driver's `accept()` therefore takes none. The parameter slot
408
- * stays for the publisher-side roles of REQUEST_OK (TRACK_STATUS_OK, REQUEST_UPDATE_OK), which the fake peer in tests
409
- * exercises.
436
+ * stays for the publisher-side roles of REQUEST_OK (TRACK_STATUS_OK, REQUEST_UPDATE_OK). Track Properties are
437
+ * populated only in TRACK_STATUS_OK, which the publish session sends; they are the rest of the message, so an empty
438
+ * list adds no bytes.
410
439
  */
411
- export declare function encodeRequestOk(parameters?: MessageParameters, protocol?: MoqtProtocolId): Uint8Array;
440
+ export declare function encodeRequestOk(parameters?: MessageParameters, protocol?: MoqtProtocolId, trackProperties?: readonly KeyValuePair[]): Uint8Array;
412
441
  /** REQUEST_ERROR (§9.4) without a Redirect — enough to reject incoming requests. */
413
442
  export declare function encodeRequestError(errorCode: number, reason?: string, retryInterval?: number): Uint8Array;
414
443
  /** SUBSCRIBE_OK (§9.7). */
@@ -448,91 +477,160 @@ export interface Redirect {
448
477
  /** Track name to request there. */
449
478
  trackName: string;
450
479
  }
480
+ /**
481
+ * A decoded control message, as `decodeControlMessage` returns it. `kind` names the message; the other fields are its
482
+ * body, with parameters decoded for the negotiated draft.
483
+ */
451
484
  export type ControlMessage = {
485
+ /** SETUP (§9.1). */
452
486
  kind: 'setup';
487
+ /** The Setup Options. */
453
488
  options: KeyValuePair[];
454
489
  } | {
490
+ /** GOAWAY (§9.2). */
455
491
  kind: 'goaway';
492
+ /** Where to reconnect; empty for the same URI. */
456
493
  newSessionUri: string;
494
+ /** Milliseconds until the sender closes the session; 0 for none given. */
457
495
  timeout: number;
458
496
  } | {
497
+ /** SUBSCRIBE (§9.6). */
459
498
  kind: 'subscribe';
499
+ /** The sender's Request ID. */
460
500
  requestId: number;
501
+ /** The track's namespace. */
461
502
  trackNamespace: TrackNamespace;
503
+ /** The track's name. */
462
504
  trackName: string;
505
+ /** The message parameters. */
463
506
  parameters: MessageParameters;
464
507
  } | {
508
+ /** TRACK_STATUS (§9.13). */
465
509
  kind: 'track-status';
510
+ /** The sender's Request ID. */
466
511
  requestId: number;
512
+ /** The track's namespace. */
467
513
  trackNamespace: TrackNamespace;
514
+ /** The track's name. */
468
515
  trackName: string;
516
+ /** The message parameters. */
469
517
  parameters: MessageParameters;
470
518
  } | {
519
+ /** FETCH (§9.11). */
471
520
  kind: 'fetch';
521
+ /** The FETCH body, which has the SUBSCRIBE shape. */
472
522
  request: FetchRequest & {
523
+ /** The message parameters, `parameters.locationFilter` giving the range. */
473
524
  parameters: MessageParameters;
474
525
  };
475
526
  } | {
527
+ /** SUBSCRIBE_NAMESPACE (§9.15). */
476
528
  kind: 'subscribe-namespace';
529
+ /** The sender's Request ID. */
477
530
  requestId: number;
531
+ /** The namespace prefix to hear about. */
478
532
  trackNamespacePrefix: TrackNamespace;
533
+ /** The message parameters. */
479
534
  parameters: MessageParameters;
480
535
  } | {
536
+ /** SUBSCRIBE_OK (§9.7). */
481
537
  kind: 'subscribe-ok';
538
+ /** The Track Alias the subscription's data streams carry. */
482
539
  trackAlias: number;
540
+ /** The message parameters. */
483
541
  parameters: MessageParameters;
542
+ /** The Track Properties. */
484
543
  trackProperties: KeyValuePair[];
485
544
  } | {
545
+ /** REQUEST_OK (§9.3). */
486
546
  kind: 'request-ok';
547
+ /** The message parameters. */
487
548
  parameters: MessageParameters;
549
+ /** The Track Properties; empty except in TRACK_STATUS_OK. */
488
550
  trackProperties: KeyValuePair[];
489
551
  } | {
552
+ /** REQUEST_ERROR (§9.4). */
490
553
  kind: 'request-error';
554
+ /** The error code; see `REQUEST_ERROR_CODE`. */
491
555
  errorCode: number;
556
+ /** The Retry Interval. */
492
557
  retryInterval: number;
558
+ /** The reason phrase. */
493
559
  reason: string;
560
+ /** Where to send the request instead, when the error carries one. */
494
561
  redirect?: Redirect;
495
562
  } | {
563
+ /** REQUEST_UPDATE (§9.5). */
496
564
  kind: 'request-update';
565
+ /** The update's own Request ID. */
497
566
  requestId: number;
567
+ /** The message parameters. */
498
568
  parameters: MessageParameters;
499
569
  } | {
570
+ /** PUBLISH_STATE_NOTIFY (§9.10). */
500
571
  kind: 'publish-state-notify';
572
+ /** The subscription parameters that changed. */
501
573
  parameters: MessageParameters;
502
574
  } | {
575
+ /** PUBLISH_DONE (§9.9). */
503
576
  kind: 'publish-done';
577
+ /** The status code; see `PUBLISH_DONE_STATUS`. */
504
578
  statusCode: number;
505
579
  /** `undefined` when the publisher could not count its streams (the 2^64−1 sentinel, §9.9). */
506
580
  streamCount: number | undefined;
581
+ /** The reason phrase. */
507
582
  reason: string;
508
583
  } | {
584
+ /** PUBLISH (§9.8). */
509
585
  kind: 'publish';
586
+ /** The sender's Request ID. */
510
587
  requestId: number;
588
+ /** The track's namespace. */
511
589
  trackNamespace: TrackNamespace;
590
+ /** The track's name. */
512
591
  trackName: string;
592
+ /** The Track Alias the publication's data streams carry. */
513
593
  trackAlias: number;
594
+ /** The message parameters. */
514
595
  parameters: MessageParameters;
596
+ /** The Track Properties. */
515
597
  trackProperties: KeyValuePair[];
516
598
  } | {
599
+ /** PUBLISH_NAMESPACE (§9.14). */
517
600
  kind: 'publish-namespace';
601
+ /** The sender's Request ID. */
518
602
  requestId: number;
603
+ /** The namespace announced. */
519
604
  trackNamespace: TrackNamespace;
605
+ /** The message parameters. */
520
606
  parameters: MessageParameters;
521
607
  } | {
608
+ /** FETCH_OK (§9.12). */
522
609
  kind: 'fetch-ok';
610
+ /** Whether the range reaches the end of the track. */
523
611
  endOfTrack: boolean;
612
+ /** The last location the fetch serves. */
524
613
  endLocation: Location;
614
+ /** The message parameters. */
525
615
  parameters: MessageParameters;
616
+ /** The Track Properties. */
526
617
  trackProperties: KeyValuePair[];
527
618
  } | {
619
+ /** NAMESPACE, on a SUBSCRIBE_NAMESPACE request stream (§9.16). */
528
620
  kind: 'namespace';
621
+ /** The namespace, after the subscribed prefix. */
529
622
  trackNamespaceSuffix: TrackNamespace;
530
623
  } | {
624
+ /** NAMESPACE_DONE, on a SUBSCRIBE_NAMESPACE request stream (§9.17). */
531
625
  kind: 'namespace-done';
626
+ /** The withdrawn namespace, after the subscribed prefix. */
532
627
  trackNamespaceSuffix: TrackNamespace;
533
628
  } | {
629
+ /** PUBLISH_SKIPPED, on a SUBSCRIBE_NAMESPACE request stream. */
534
630
  kind: 'publish-skipped';
631
+ /** The track's namespace, after the subscribed prefix. */
535
632
  trackNamespaceSuffix: TrackNamespace;
633
+ /** The track's name. */
536
634
  trackName: string;
537
635
  };
538
636
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"control-messages.d.ts","sourceRoot":"","sources":["../../src/protocol/control-messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,UAAU,EAAE,UAAU,EAA0B,MAAM,YAAY,CAAC;AAQ5E;;;;;;GAMG;AACH,eAAO,MA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