@caprid/moq-media 0.5.0 → 0.6.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.
Files changed (2) hide show
  1. package/README.md +12 -8
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,8 +1,12 @@
1
- # MoQ media formats
1
+ # MoQ media formats and players
2
2
 
3
- `@caprid/moq-media` holds pure format helpers for LOC (`draft-ietf-moq-loc-04`) and independent MSF
4
- (`draft-ietf-moq-msf-01`) catalogs, plus the clocks, frame sequencer, and audio and video players that sit on top of them. It
5
- depends only on `@caprid/moq-core`. It needs no encoder, transport library, or Relay connection.
3
+ `@caprid/moq-media` has headless audio and video players for the browser, playout clocks, a frame
4
+ sequencer, and the LOC and MSF formats they read.
5
+
6
+ The formats are LOC (`draft-ietf-moq-loc-04`) and independent MSF (`draft-ietf-moq-msf-01`) catalogs,
7
+ with pure helpers that map WebCodecs chunks and configs to them. [Audio playout](#audio-playout) and
8
+ [video playout](#video-playout) decode and play a subscribed track with no UI. The package depends
9
+ only on `@caprid/moq-core`. It needs no encoder, transport library, or Relay connection.
6
10
 
7
11
  ```sh
8
12
  npm install @caprid/moq-media
@@ -159,9 +163,9 @@ than assuming that the relay rescaled to microseconds.
159
163
  `createFrameSequencer({ clock })` turns one subscribed track's objects into frames in decode order. Objects can arrive
160
164
  out of order across group streams, and the sequencer drops what is too late against the playout clock.
161
165
  `createFrameReader` in `@caprid/relay/media` drives it from a subscription (see
162
- [subscribing to media](https://github.com/caprids/relay-sdks/blob/main/ts/GUIDE.md#subscribing-to-media)). Per track, `lateDropUs`, `reorderWindowUs`, and
166
+ [subscribing and sequencing frames](https://www.caprid.com/docs/media/browser/#subscribing-and-sequencing-frames)). Per track, `lateDropUs`, `reorderWindowUs`, and
163
167
  `catchUpAfterUs` tune audio delivery for a listener or for speech-to-text. `missingGroups` on a frame names the groups
164
- skipped before it (see [voice delivery](https://github.com/caprids/relay-sdks/blob/main/ts/GUIDE.md#voice-delivery-per-direction)).
168
+ skipped before it (see [voice delivery](https://www.caprid.com/docs/media/voice/#delivery-policy-per-direction)).
165
169
 
166
170
  ## Media timeline
167
171
 
@@ -219,7 +223,7 @@ Give an audio-only broadcast's playout clock `AUDIO_ONLY_TARGET_LATENCY_US` (500
219
223
  default waits for keyframe intervals.
220
224
 
221
225
  The player takes structural Web Audio types, so it imports no DOM library. Its tests run under a fake context that runs
222
- the real worklet. See [playing audio](https://github.com/caprids/relay-sdks/blob/main/ts/GUIDE.md#playing-audio) and
226
+ the real worklet. See [playing audio](https://www.caprid.com/docs/media/browser/#playing-audio) and
223
227
  [audio player](https://github.com/caprids/relay-sdks/blob/main/spec/media-layer.md#audio-player).
224
228
 
225
229
  ## Video playout
@@ -253,7 +257,7 @@ subscriber.subscribe({ namespace, track: 'video', parameters: mediaSubscribePara
253
257
  - `player.stats` counts frames decoded, shown, dropped by the clock, and skipped before a keyframe. `player.joinPhases`
254
258
  records when the first frame was pushed, decoded, and shown.
255
259
 
256
- See [playing video](https://github.com/caprids/relay-sdks/blob/main/ts/GUIDE.md#playing-video) and
260
+ See [playing video](https://www.caprid.com/docs/media/browser/#playing-video) and
257
261
  [video player](https://github.com/caprids/relay-sdks/blob/main/spec/media-layer.md#video-player).
258
262
 
259
263
  ## Stability
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caprid/moq-media",
3
- "version": "0.5.0",
4
- "description": "Transport-independent LOC and MSF media format helpers",
3
+ "version": "0.6.0",
4
+ "description": "LOC and MSF media formats, playout clocks, and headless audio and video players for MoQ",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@caprid/moq-core": "0.5.0"
26
+ "@caprid/moq-core": "0.6.0"
27
27
  },
28
28
  "engines": {
29
29
  "node": ">=24"