moqtail 0.12.1 → 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 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 extension headers
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
- const publish_namespace_done = new publishNamespaceDone(Tuple.tryNew(['live', 'conference']))
380
- await client.publishNamespaceDone(publish_namespace_done)
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
- const unsubscribeNamespace = new UnsubscribeNamespace(Tuple.tryNew(['live']))
399
- await client.unsubscribeNamespace(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