You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indicates that the application is ready to receive segments. Returns an array of objects containing the following properties:
275
+
Indicates that the application is ready to receive segments.
276
+
`mode` can be `'combined'` (default) or `'per-track'`.
276
277
277
-
-**id**: Number, the track id
278
-
-**user**: Object, the caller of the segmentation for this track, as given in [setSegmentOptions](##setsegmentoptionstrack_id-user-options)
279
-
-**buffer**: ArrayBuffer, the initialization segment for this track.
280
-
-**sampleNumber**: Number, sample number of the last sample in the segment, plus 1.
281
-
-**last**: Boolean, indication if this is the last segment to be received.
278
+
By default, it returns a single initialization segment containing all tracks configured with [setSegmentOptions](#setsegmentoptionstrack_id-user-options):
279
+
280
+
```json
281
+
{
282
+
"tracks": [
283
+
{ "id": 2, "user": "[SourceBuffer]" },
284
+
{ "id": 3, "user": "[SourceBuffer]" }
285
+
],
286
+
"buffer": "[ArrayBuffer]"
287
+
}
288
+
```
289
+
290
+
If called with `'per-track'`, it returns one initialization segment per fragmented track:
0 commit comments