moqtail 0.12.0 → 0.13.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/README.md +7 -7
- package/dist/client-BzncAN14.mjs +4359 -0
- package/dist/client-DahXR3l4.cjs +4496 -0
- package/dist/client.cjs +25 -8254
- package/dist/client.d.cts +1333 -1470
- package/dist/client.d.mts +1706 -0
- package/dist/client.mjs +2 -0
- package/dist/index-C8pNnaj0.d.cts +2814 -0
- package/dist/index-C8pNnaj0.d.mts +2814 -0
- package/dist/index.cjs +284 -8975
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +5 -0
- package/dist/logger-ByDB8lYF.mjs +56 -0
- package/dist/logger-c2NoQqtx.cjs +85 -0
- package/dist/{logger-C6QS408Z.d.cts → logger-dEoueCj7.d.cts} +13 -12
- package/dist/{logger-C6QS408Z.d.ts → logger-dEoueCj7.d.mts} +13 -12
- package/dist/model.cjs +6173 -4883
- package/dist/model.d.cts +2 -442
- package/dist/model.d.mts +2 -0
- package/dist/model.mjs +6115 -0
- package/dist/util.cjs +123 -142
- package/dist/util.d.cts +29 -24
- package/dist/{util.d.ts → util.d.mts} +29 -24
- package/dist/util.mjs +121 -0
- package/package.json +19 -18
- package/dist/client.d.ts +0 -1843
- package/dist/client.js +0 -8233
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -8825
- package/dist/model.d.ts +0 -442
- package/dist/model.js +0 -4951
- package/dist/setup_parameter-BgNrJRDS.d.cts +0 -2758
- package/dist/setup_parameter-BgNrJRDS.d.ts +0 -2758
- package/dist/util.js +0 -139
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ All content is packaged as `MoqtObject` instances, which represent the atomic un
|
|
|
71
71
|
|
|
72
72
|
- **Location**: Identified by `groupId` and `objectId` (e.g., video frames within GOPs)
|
|
73
73
|
- **Payload**: The actual media data or content
|
|
74
|
-
- **Metadata**: Publisher priority, forwarding preferences, and
|
|
74
|
+
- **Metadata**: Publisher priority, forwarding preferences, and properties
|
|
75
75
|
- **Status**: Normal data, end-of-group markers, or error conditions
|
|
76
76
|
|
|
77
77
|
### Object Caching
|
|
@@ -375,9 +375,9 @@ if (result instanceof PublishNamespaceError) {
|
|
|
375
375
|
console.log('Namespace published successfully')
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
// Stop announcing a namespace
|
|
379
|
-
|
|
380
|
-
await client.
|
|
378
|
+
// Stop announcing a namespace: draft-18 has no PUBLISH_NAMESPACE_DONE, so this closes
|
|
379
|
+
// the stream the PUBLISH_NAMESPACE opened (§3.3.2)
|
|
380
|
+
await client.unpublishNamespace(Tuple.tryNew(['live', 'conference']))
|
|
381
381
|
```
|
|
382
382
|
|
|
383
383
|
#### Subscribe to Announcements
|
|
@@ -394,9 +394,9 @@ await client.subscribeNamespace(subscribeNamespace)
|
|
|
394
394
|
// The client will now receive announce messages for tracks
|
|
395
395
|
// matching the 'live' prefix through its announcement handling
|
|
396
396
|
|
|
397
|
-
// Stop subscribing to announcements
|
|
398
|
-
|
|
399
|
-
await client.unsubscribeNamespace(
|
|
397
|
+
// Stop subscribing to announcements: likewise no UNSUBSCRIBE_NAMESPACE, the
|
|
398
|
+
// SUBSCRIBE_NAMESPACE stream is simply closed
|
|
399
|
+
await client.unsubscribeNamespace(Tuple.tryNew(['live']))
|
|
400
400
|
```
|
|
401
401
|
|
|
402
402
|
#### Track Status Requests
|