fluxkit-player 0.1.0 → 0.1.1

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 (49) hide show
  1. package/CHANGELOG.md +88 -9
  2. package/README.en.md +224 -0
  3. package/README.md +207 -98
  4. package/THIRD-PARTY-NOTICES.md +30 -0
  5. package/dist/fluxkit.js +2052 -479
  6. package/dist/fluxkit.js.map +1 -1
  7. package/dist/fluxkit.umd.cjs +75 -3
  8. package/dist/fluxkit.umd.cjs.map +1 -1
  9. package/dist/types/config.d.ts +21 -1
  10. package/dist/types/crypto/hls-aes.d.ts +13 -0
  11. package/dist/types/demux/flv.d.ts +2 -0
  12. package/dist/types/demux/hls.d.ts +25 -0
  13. package/dist/types/index.d.ts +3 -2
  14. package/dist/types/pipeline/timeline.d.ts +4 -0
  15. package/dist/types/player.d.ts +60 -1
  16. package/dist/types/render/audio.d.ts +13 -0
  17. package/dist/types/render/backlog.d.ts +27 -0
  18. package/dist/types/render/mse.d.ts +7 -0
  19. package/dist/types/render/software.d.ts +34 -1
  20. package/dist/types/render/subtitles.d.ts +36 -0
  21. package/dist/types/render/webcodecs.d.ts +4 -0
  22. package/dist/types/soft/index.d.ts +5 -0
  23. package/dist/types/soft/openh264.d.ts +21 -0
  24. package/dist/types/soft/soft-worker.d.ts +2 -0
  25. package/dist/types/soft/types.d.ts +2 -2
  26. package/dist/types/soft/worker-protocol.d.ts +52 -0
  27. package/dist/types/source/abr.d.ts +22 -0
  28. package/dist/types/source/hls.d.ts +39 -2
  29. package/dist/types/source/stream.d.ts +2 -1
  30. package/dist/types/types.d.ts +108 -0
  31. package/dist/types/ui/controls.d.ts +68 -0
  32. package/docs/PUBLISHING.md +142 -0
  33. package/docs/README.md +42 -0
  34. package/docs/TEST-REPORT.md +370 -0
  35. package/docs/USAGE.md +513 -0
  36. package/docs/architecture.md +213 -0
  37. package/docs/test-logs/build.txt +19 -0
  38. package/docs/test-logs/coverage.txt +64 -0
  39. package/docs/test-logs/e2e-firefox.txt +1667 -0
  40. package/docs/test-logs/e2e.txt +1667 -0
  41. package/docs/test-logs/environment.json +62 -0
  42. package/docs/test-logs/typecheck.txt +1 -0
  43. package/docs/test-logs/unit.txt +81 -0
  44. package/examples/README.md +53 -0
  45. package/examples/minimal.html +49 -0
  46. package/examples/react/FluxPlayer.tsx +48 -0
  47. package/examples/soft-worker.js +6 -0
  48. package/examples/vue/FluxPlayer.vue +47 -0
  49. package/package.json +22 -3
@@ -0,0 +1,1667 @@
1
+ Firefox 47ab6682-1b40-4a39-9f05-8580808187d1
2
+
3
+ === hls-mse (mse) ===
4
+ {
5
+ "name": "hls-mse",
6
+ "ok": true,
7
+ "elapsedMs": 1641,
8
+ "probe": null,
9
+ "snapshot": {
10
+ "currentTime": 1170.23,
11
+ "duration": 634567,
12
+ "decoder": "mse",
13
+ "reconnects": 0,
14
+ "tracks": [
15
+ {
16
+ "kind": "video",
17
+ "codec": "avc"
18
+ },
19
+ {
20
+ "kind": "audio",
21
+ "codec": "aac"
22
+ }
23
+ ],
24
+ "video": {
25
+ "width": 1920,
26
+ "height": 1080,
27
+ "readyState": 4,
28
+ "display": "block"
29
+ },
30
+ "canvas": {
31
+ "width": 300,
32
+ "height": 150,
33
+ "display": "none"
34
+ },
35
+ "stats": {
36
+ "protocol": "hls",
37
+ "decoder": "mse",
38
+ "videoCodec": "H.264",
39
+ "width": 1920,
40
+ "height": 1080,
41
+ "fps": 52.8,
42
+ "kbps": 361717,
43
+ "frames": 53,
44
+ "dropped": 0,
45
+ "audioFrames": 0,
46
+ "audioPeak": 0,
47
+ "audioState": "none",
48
+ "audioVolume": 0,
49
+ "audioPath": "mse",
50
+ "decodeWorker": false,
51
+ "bufferAhead": 48.68
52
+ },
53
+ "error": null
54
+ },
55
+ "logs": [
56
+ "info: loading hls https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
57
+ "info: decoder: MSE"
58
+ ]
59
+ }
60
+
61
+ === flv-mse (mse) ===
62
+ {
63
+ "name": "flv-mse",
64
+ "ok": true,
65
+ "elapsedMs": 1235,
66
+ "probe": null,
67
+ "snapshot": {
68
+ "currentTime": 1131.97,
69
+ "duration": 90120,
70
+ "decoder": "mse",
71
+ "reconnects": 0,
72
+ "tracks": [
73
+ {
74
+ "kind": "video",
75
+ "codec": "avc"
76
+ },
77
+ {
78
+ "kind": "audio",
79
+ "codec": "aac"
80
+ }
81
+ ],
82
+ "video": {
83
+ "width": 640,
84
+ "height": 360,
85
+ "readyState": 4,
86
+ "display": "block"
87
+ },
88
+ "canvas": {
89
+ "width": 300,
90
+ "height": 150,
91
+ "display": "none"
92
+ },
93
+ "stats": {
94
+ "protocol": "flv",
95
+ "decoder": "mse",
96
+ "videoCodec": "H.264",
97
+ "width": 640,
98
+ "height": 360,
99
+ "fps": 21.7,
100
+ "kbps": 43407,
101
+ "frames": 22,
102
+ "dropped": 0,
103
+ "audioFrames": 0,
104
+ "audioPeak": 0,
105
+ "audioState": "none",
106
+ "audioVolume": 0,
107
+ "audioPath": "mse",
108
+ "decodeWorker": false,
109
+ "bufferAhead": 89.15
110
+ },
111
+ "error": null
112
+ },
113
+ "logs": [
114
+ "info: loading flv https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv",
115
+ "info: decoder: MSE"
116
+ ]
117
+ }
118
+
119
+ === mp4-mse (mse) ===
120
+ {
121
+ "name": "mp4-mse",
122
+ "ok": true,
123
+ "elapsedMs": 1616,
124
+ "probe": null,
125
+ "snapshot": {
126
+ "currentTime": 1372.11,
127
+ "duration": 5071.733,
128
+ "decoder": "mse",
129
+ "reconnects": 0,
130
+ "tracks": [
131
+ {
132
+ "kind": "video",
133
+ "codec": "avc"
134
+ },
135
+ {
136
+ "kind": "audio",
137
+ "codec": "aac"
138
+ }
139
+ ],
140
+ "video": {
141
+ "width": 960,
142
+ "height": 540,
143
+ "readyState": 4,
144
+ "display": "block"
145
+ },
146
+ "canvas": {
147
+ "width": 300,
148
+ "height": 150,
149
+ "display": "none"
150
+ },
151
+ "stats": {
152
+ "protocol": "mp4",
153
+ "decoder": "mse",
154
+ "videoCodec": "H.264",
155
+ "width": 960,
156
+ "height": 540,
157
+ "fps": 26.5,
158
+ "kbps": 8859,
159
+ "frames": 27,
160
+ "dropped": 0,
161
+ "audioFrames": 0,
162
+ "audioPeak": 0,
163
+ "audioState": "none",
164
+ "audioVolume": 0,
165
+ "audioPath": "mse",
166
+ "decodeWorker": false,
167
+ "bufferAhead": 4.1
168
+ },
169
+ "error": null
170
+ },
171
+ "logs": [
172
+ "info: loading mp4 https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
173
+ "info: decoder: MSE"
174
+ ]
175
+ }
176
+
177
+ === hevc-software (software) ===
178
+ {
179
+ "name": "hevc-software",
180
+ "ok": true,
181
+ "elapsedMs": 1229,
182
+ "probe": {
183
+ "ok": true,
184
+ "shot": 516003
185
+ },
186
+ "snapshot": {
187
+ "currentTime": 1226.67,
188
+ "duration": 10000,
189
+ "decoder": "software",
190
+ "reconnects": 0,
191
+ "tracks": [
192
+ {
193
+ "kind": "video",
194
+ "codec": "hevc"
195
+ }
196
+ ],
197
+ "video": {
198
+ "width": 0,
199
+ "height": 0,
200
+ "readyState": 0,
201
+ "display": "none"
202
+ },
203
+ "canvas": {
204
+ "width": 640,
205
+ "height": 360,
206
+ "display": "block"
207
+ },
208
+ "stats": {
209
+ "protocol": "mp4",
210
+ "decoder": "software",
211
+ "videoCodec": "HEVC",
212
+ "width": 1280,
213
+ "height": 720,
214
+ "fps": 33,
215
+ "kbps": 8475,
216
+ "frames": 33,
217
+ "dropped": 0,
218
+ "audioFrames": 0,
219
+ "audioPeak": 0,
220
+ "audioState": "none",
221
+ "audioVolume": 1,
222
+ "audioPath": "none",
223
+ "decodeWorker": false,
224
+ "bufferAhead": 8.57
225
+ },
226
+ "error": null
227
+ },
228
+ "logs": [
229
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
230
+ "info: decoder: software (libde265)"
231
+ ]
232
+ }
233
+
234
+ === h264-high-software (software) ===
235
+ {
236
+ "name": "h264-high-software",
237
+ "ok": true,
238
+ "elapsedMs": 1237,
239
+ "probe": {
240
+ "ok": true,
241
+ "shot": 31652,
242
+ "avg": 137
243
+ },
244
+ "snapshot": {
245
+ "currentTime": 1253.67,
246
+ "duration": "inf",
247
+ "decoder": "software",
248
+ "reconnects": 0,
249
+ "tracks": [
250
+ {
251
+ "kind": "video",
252
+ "codec": "avc"
253
+ }
254
+ ],
255
+ "video": {
256
+ "width": 0,
257
+ "height": 0,
258
+ "readyState": 0,
259
+ "display": "none"
260
+ },
261
+ "canvas": {
262
+ "width": 640,
263
+ "height": 360,
264
+ "display": "block"
265
+ },
266
+ "stats": {
267
+ "protocol": "mp4",
268
+ "decoder": "software",
269
+ "videoCodec": "H.264",
270
+ "width": 960,
271
+ "height": 540,
272
+ "fps": 64.9,
273
+ "kbps": 24128,
274
+ "frames": 65,
275
+ "dropped": 5,
276
+ "audioFrames": 0,
277
+ "audioPeak": 0,
278
+ "audioState": "none",
279
+ "audioVolume": 1,
280
+ "audioPath": "none",
281
+ "decodeWorker": false,
282
+ "bufferAhead": 10.63
283
+ },
284
+ "error": null
285
+ },
286
+ "logs": [
287
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/video-only.mp4",
288
+ "info: decoder: software (OpenH264)"
289
+ ]
290
+ }
291
+
292
+ === h264-high-worker (software) ===
293
+ {
294
+ "name": "h264-high-worker",
295
+ "ok": true,
296
+ "elapsedMs": 1220,
297
+ "probe": null,
298
+ "snapshot": {
299
+ "currentTime": 1238.67,
300
+ "duration": "inf",
301
+ "decoder": "software",
302
+ "reconnects": 0,
303
+ "tracks": [
304
+ {
305
+ "kind": "video",
306
+ "codec": "avc"
307
+ }
308
+ ],
309
+ "video": {
310
+ "width": 0,
311
+ "height": 0,
312
+ "readyState": 0,
313
+ "display": "none"
314
+ },
315
+ "canvas": {
316
+ "width": 640,
317
+ "height": 360,
318
+ "display": "block"
319
+ },
320
+ "stats": {
321
+ "protocol": "mp4",
322
+ "decoder": "software",
323
+ "videoCodec": "H.264",
324
+ "width": 960,
325
+ "height": 540,
326
+ "fps": 65.9,
327
+ "kbps": 24103,
328
+ "frames": 66,
329
+ "dropped": 2,
330
+ "audioFrames": 0,
331
+ "audioPeak": 0,
332
+ "audioState": "none",
333
+ "audioVolume": 1,
334
+ "audioPath": "none",
335
+ "decodeWorker": true,
336
+ "bufferAhead": 10.63
337
+ },
338
+ "error": null
339
+ },
340
+ "logs": [
341
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/video-only.mp4",
342
+ "info: decoder: software (OpenH264)"
343
+ ]
344
+ }
345
+
346
+ === hevc-software-worker (software) ===
347
+ {
348
+ "name": "hevc-software-worker",
349
+ "ok": true,
350
+ "elapsedMs": 1234,
351
+ "probe": {
352
+ "ok": true,
353
+ "avg": 83,
354
+ "shot": 491525
355
+ },
356
+ "snapshot": {
357
+ "currentTime": 1214.67,
358
+ "duration": 10000,
359
+ "decoder": "software",
360
+ "reconnects": 0,
361
+ "tracks": [
362
+ {
363
+ "kind": "video",
364
+ "codec": "hevc"
365
+ }
366
+ ],
367
+ "video": {
368
+ "width": 0,
369
+ "height": 0,
370
+ "readyState": 0,
371
+ "display": "none"
372
+ },
373
+ "canvas": {
374
+ "width": 640,
375
+ "height": 360,
376
+ "display": "block"
377
+ },
378
+ "stats": {
379
+ "protocol": "mp4",
380
+ "decoder": "software",
381
+ "videoCodec": "HEVC",
382
+ "width": 1280,
383
+ "height": 720,
384
+ "fps": 32.8,
385
+ "kbps": 8165,
386
+ "frames": 34,
387
+ "dropped": 0,
388
+ "audioFrames": 0,
389
+ "audioPeak": 0,
390
+ "audioState": "none",
391
+ "audioVolume": 1,
392
+ "audioPath": "none",
393
+ "decodeWorker": true,
394
+ "bufferAhead": 8.53
395
+ },
396
+ "error": null
397
+ },
398
+ "logs": [
399
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
400
+ "info: decoder: software (libde265)"
401
+ ]
402
+ }
403
+
404
+ === hevc-umd-worker (software) ===
405
+ {
406
+ "name": "hevc-umd-worker",
407
+ "ok": true,
408
+ "elapsedMs": 1214,
409
+ "probe": null,
410
+ "snapshot": {
411
+ "currentTime": 1216.67,
412
+ "duration": 10000,
413
+ "decoder": "software",
414
+ "reconnects": 0,
415
+ "tracks": [
416
+ {
417
+ "kind": "video",
418
+ "codec": "hevc"
419
+ }
420
+ ],
421
+ "video": {
422
+ "width": 0,
423
+ "height": 0,
424
+ "readyState": 0,
425
+ "display": "none"
426
+ },
427
+ "canvas": {
428
+ "width": 640,
429
+ "height": 360,
430
+ "display": "block"
431
+ },
432
+ "stats": {
433
+ "protocol": "mp4",
434
+ "decoder": "software",
435
+ "videoCodec": "HEVC",
436
+ "width": 1280,
437
+ "height": 720,
438
+ "fps": 32.6,
439
+ "kbps": 8383,
440
+ "frames": 33,
441
+ "dropped": 0,
442
+ "audioFrames": 0,
443
+ "audioPeak": 0,
444
+ "audioState": "none",
445
+ "audioVolume": 1,
446
+ "audioPath": "none",
447
+ "decodeWorker": true,
448
+ "bufferAhead": 8.56
449
+ },
450
+ "error": null
451
+ },
452
+ "logs": [
453
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
454
+ "info: decoder: software (libde265)"
455
+ ]
456
+ }
457
+
458
+ === hevc-1080p-main (software) ===
459
+ {
460
+ "name": "hevc-1080p-main",
461
+ "ok": true,
462
+ "elapsedMs": 5220,
463
+ "probe": {
464
+ "ok": true,
465
+ "fps": 30,
466
+ "frames": 152,
467
+ "dropped": 0,
468
+ "maxGap": 90,
469
+ "maxBacklog": 8.5
470
+ },
471
+ "snapshot": {
472
+ "currentTime": 1197.67,
473
+ "duration": 10000,
474
+ "decoder": "software",
475
+ "reconnects": 0,
476
+ "tracks": [
477
+ {
478
+ "kind": "video",
479
+ "codec": "hevc"
480
+ }
481
+ ],
482
+ "video": {
483
+ "width": 0,
484
+ "height": 0,
485
+ "readyState": 0,
486
+ "display": "none"
487
+ },
488
+ "canvas": {
489
+ "width": 640,
490
+ "height": 360,
491
+ "display": "block"
492
+ },
493
+ "stats": {
494
+ "protocol": "mp4",
495
+ "decoder": "software",
496
+ "videoCodec": "HEVC",
497
+ "width": 1920,
498
+ "height": 1080,
499
+ "fps": 32,
500
+ "kbps": 16805,
501
+ "frames": 32,
502
+ "dropped": 0,
503
+ "audioFrames": 0,
504
+ "audioPeak": 0,
505
+ "audioState": "none",
506
+ "audioVolume": 1,
507
+ "audioPath": "none",
508
+ "decodeWorker": false,
509
+ "bufferAhead": 8.54
510
+ },
511
+ "error": null
512
+ },
513
+ "logs": [
514
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc-1080.mp4",
515
+ "info: decoder: software (libde265)"
516
+ ]
517
+ }
518
+
519
+ === hevc-1080p-worker (software) ===
520
+ {
521
+ "name": "hevc-1080p-worker",
522
+ "ok": true,
523
+ "elapsedMs": 5215,
524
+ "probe": {
525
+ "ok": true,
526
+ "fps": 30.5,
527
+ "frames": 155,
528
+ "dropped": 0,
529
+ "maxGap": 55,
530
+ "maxBacklog": 8.5
531
+ },
532
+ "snapshot": {
533
+ "currentTime": 1163.67,
534
+ "duration": 10000,
535
+ "decoder": "software",
536
+ "reconnects": 0,
537
+ "tracks": [
538
+ {
539
+ "kind": "video",
540
+ "codec": "hevc"
541
+ }
542
+ ],
543
+ "video": {
544
+ "width": 0,
545
+ "height": 0,
546
+ "readyState": 0,
547
+ "display": "none"
548
+ },
549
+ "canvas": {
550
+ "width": 640,
551
+ "height": 360,
552
+ "display": "block"
553
+ },
554
+ "stats": {
555
+ "protocol": "mp4",
556
+ "decoder": "software",
557
+ "videoCodec": "HEVC",
558
+ "width": 1920,
559
+ "height": 1080,
560
+ "fps": 30.4,
561
+ "kbps": 15474,
562
+ "frames": 33,
563
+ "dropped": 1,
564
+ "audioFrames": 0,
565
+ "audioPeak": 0,
566
+ "audioState": "none",
567
+ "audioVolume": 1,
568
+ "audioPath": "none",
569
+ "decodeWorker": true,
570
+ "bufferAhead": 8.47
571
+ },
572
+ "error": null
573
+ },
574
+ "logs": [
575
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc-1080.mp4",
576
+ "info: decoder: software (libde265)"
577
+ ]
578
+ }
579
+
580
+ === software-rate (software) ===
581
+ {
582
+ "name": "software-rate",
583
+ "ok": true,
584
+ "elapsedMs": 3233,
585
+ "probe": {
586
+ "ok": true,
587
+ "ratio": 2,
588
+ "media": 4.02,
589
+ "elapsed": 2.01
590
+ },
591
+ "snapshot": {
592
+ "currentTime": 1221.67,
593
+ "duration": 10000,
594
+ "decoder": "software",
595
+ "reconnects": 0,
596
+ "tracks": [
597
+ {
598
+ "kind": "video",
599
+ "codec": "hevc"
600
+ }
601
+ ],
602
+ "video": {
603
+ "width": 0,
604
+ "height": 0,
605
+ "readyState": 0,
606
+ "display": "none"
607
+ },
608
+ "canvas": {
609
+ "width": 640,
610
+ "height": 360,
611
+ "display": "block"
612
+ },
613
+ "stats": {
614
+ "protocol": "mp4",
615
+ "decoder": "software",
616
+ "videoCodec": "HEVC",
617
+ "width": 1280,
618
+ "height": 720,
619
+ "fps": 33,
620
+ "kbps": 8467,
621
+ "frames": 33,
622
+ "dropped": 0,
623
+ "audioFrames": 0,
624
+ "audioPeak": 0,
625
+ "audioState": "none",
626
+ "audioVolume": 1,
627
+ "audioPath": "none",
628
+ "decodeWorker": false,
629
+ "bufferAhead": 8.57
630
+ },
631
+ "error": null
632
+ },
633
+ "logs": [
634
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
635
+ "info: decoder: software (libde265)"
636
+ ]
637
+ }
638
+
639
+ === canvas-seek (webcodecs) ===
640
+ {
641
+ "name": "canvas-seek",
642
+ "ok": true,
643
+ "elapsedMs": 1625,
644
+ "probe": {
645
+ "ok": true,
646
+ "time": 6459,
647
+ "decoder": "webcodecs",
648
+ "frames": 0
649
+ },
650
+ "snapshot": {
651
+ "currentTime": 1244.67,
652
+ "duration": 12000,
653
+ "decoder": "webcodecs",
654
+ "reconnects": 0,
655
+ "tracks": [
656
+ {
657
+ "kind": "video",
658
+ "codec": "avc"
659
+ },
660
+ {
661
+ "kind": "audio",
662
+ "codec": "aac"
663
+ }
664
+ ],
665
+ "video": {
666
+ "width": 0,
667
+ "height": 0,
668
+ "readyState": 0,
669
+ "display": "none"
670
+ },
671
+ "canvas": {
672
+ "width": 960,
673
+ "height": 540,
674
+ "display": "block"
675
+ },
676
+ "stats": {
677
+ "protocol": "hls",
678
+ "decoder": "webcodecs",
679
+ "videoCodec": "H.264",
680
+ "width": 960,
681
+ "height": 540,
682
+ "fps": 66.7,
683
+ "kbps": 25955,
684
+ "frames": 67,
685
+ "dropped": 10,
686
+ "audioFrames": 0,
687
+ "audioPeak": 0.7114844918251038,
688
+ "audioState": "running",
689
+ "audioVolume": 1,
690
+ "audioPath": "webaudio",
691
+ "decodeWorker": false,
692
+ "bufferAhead": 0.22
693
+ },
694
+ "error": null
695
+ },
696
+ "logs": [
697
+ "info: loading hls http://127.0.0.1:8123/fixtures/master.m3u8",
698
+ "info: decoder: WebCodecs"
699
+ ]
700
+ }
701
+
702
+ === hevc-auto (auto) ===
703
+ {
704
+ "name": "hevc-auto",
705
+ "ok": true,
706
+ "elapsedMs": 1218,
707
+ "probe": null,
708
+ "snapshot": {
709
+ "currentTime": 1179.84,
710
+ "duration": 10066.666,
711
+ "decoder": "mse",
712
+ "reconnects": 0,
713
+ "tracks": [
714
+ {
715
+ "kind": "video",
716
+ "codec": "hevc"
717
+ }
718
+ ],
719
+ "video": {
720
+ "width": 1280,
721
+ "height": 720,
722
+ "readyState": 4,
723
+ "display": "block"
724
+ },
725
+ "canvas": {
726
+ "width": 300,
727
+ "height": 150,
728
+ "display": "none"
729
+ },
730
+ "stats": {
731
+ "protocol": "mp4",
732
+ "decoder": "mse",
733
+ "videoCodec": "HEVC",
734
+ "width": 1280,
735
+ "height": 720,
736
+ "fps": 27,
737
+ "kbps": 8475,
738
+ "frames": 27,
739
+ "dropped": 0,
740
+ "audioFrames": 0,
741
+ "audioPeak": 0,
742
+ "audioState": "none",
743
+ "audioVolume": 0,
744
+ "audioPath": "none",
745
+ "decodeWorker": false,
746
+ "bufferAhead": 9.13
747
+ },
748
+ "error": null
749
+ },
750
+ "logs": [
751
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
752
+ "info: decoder: MSE"
753
+ ]
754
+ }
755
+
756
+ === mp4-webcodecs (webcodecs) ===
757
+ {
758
+ "name": "mp4-webcodecs",
759
+ "ok": true,
760
+ "elapsedMs": 1210,
761
+ "probe": null,
762
+ "snapshot": {
763
+ "currentTime": 1164.73,
764
+ "duration": 5055,
765
+ "decoder": "webcodecs",
766
+ "reconnects": 0,
767
+ "tracks": [
768
+ {
769
+ "kind": "video",
770
+ "codec": "avc"
771
+ },
772
+ {
773
+ "kind": "audio",
774
+ "codec": "aac"
775
+ }
776
+ ],
777
+ "video": {
778
+ "width": 0,
779
+ "height": 0,
780
+ "readyState": 0,
781
+ "display": "none"
782
+ },
783
+ "canvas": {
784
+ "width": 960,
785
+ "height": 540,
786
+ "display": "block"
787
+ },
788
+ "stats": {
789
+ "protocol": "mp4",
790
+ "decoder": "webcodecs",
791
+ "videoCodec": "H.264",
792
+ "width": 960,
793
+ "height": 540,
794
+ "fps": 38,
795
+ "kbps": 9027,
796
+ "frames": 38,
797
+ "dropped": 0,
798
+ "audioFrames": 0,
799
+ "audioPeak": 0,
800
+ "audioState": "running",
801
+ "audioVolume": 1,
802
+ "audioPath": "webaudio",
803
+ "decodeWorker": false,
804
+ "bufferAhead": 0.47
805
+ },
806
+ "error": null
807
+ },
808
+ "logs": [
809
+ "info: loading mp4 https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
810
+ "info: decoder: WebCodecs"
811
+ ]
812
+ }
813
+
814
+ === hls-fmp4 (mse) ===
815
+ {
816
+ "name": "hls-fmp4",
817
+ "ok": true,
818
+ "elapsedMs": 1212,
819
+ "probe": null,
820
+ "snapshot": {
821
+ "currentTime": 1174.48,
822
+ "duration": 12060.666,
823
+ "decoder": "mse",
824
+ "reconnects": 0,
825
+ "tracks": [
826
+ {
827
+ "kind": "video",
828
+ "codec": "avc"
829
+ },
830
+ {
831
+ "kind": "audio",
832
+ "codec": "aac"
833
+ }
834
+ ],
835
+ "video": {
836
+ "width": 960,
837
+ "height": 540,
838
+ "readyState": 4,
839
+ "display": "block"
840
+ },
841
+ "canvas": {
842
+ "width": 300,
843
+ "height": 150,
844
+ "display": "none"
845
+ },
846
+ "stats": {
847
+ "protocol": "hls",
848
+ "decoder": "mse",
849
+ "videoCodec": "H.264",
850
+ "width": 960,
851
+ "height": 540,
852
+ "fps": 54,
853
+ "kbps": 26084,
854
+ "frames": 54,
855
+ "dropped": 0,
856
+ "audioFrames": 0,
857
+ "audioPeak": 0,
858
+ "audioState": "none",
859
+ "audioVolume": 0,
860
+ "audioPath": "mse",
861
+ "decodeWorker": false,
862
+ "bufferAhead": 11.13
863
+ },
864
+ "error": null
865
+ },
866
+ "logs": [
867
+ "info: loading hls http://127.0.0.1:8123/fixtures/master.m3u8",
868
+ "info: decoder: MSE"
869
+ ]
870
+ }
871
+
872
+ === hls-tracks (mse) ===
873
+ {
874
+ "name": "hls-tracks",
875
+ "ok": true,
876
+ "elapsedMs": 2841,
877
+ "probe": {
878
+ "ok": true,
879
+ "audio": [
880
+ {
881
+ "id": "audio-0",
882
+ "label": "English",
883
+ "language": "en",
884
+ "default": true,
885
+ "active": false
886
+ },
887
+ {
888
+ "id": "audio-1",
889
+ "label": "Spanish",
890
+ "language": "es",
891
+ "default": false,
892
+ "active": true
893
+ }
894
+ ],
895
+ "subtitle": [
896
+ {
897
+ "id": "subtitle-0",
898
+ "label": "English",
899
+ "language": "en",
900
+ "default": true,
901
+ "active": true,
902
+ "uri": "http://127.0.0.1:8123/fixtures/subs.m3u8"
903
+ }
904
+ ],
905
+ "text": "Hello from FluxKit",
906
+ "time": 1844,
907
+ "audioOk": true
908
+ },
909
+ "snapshot": {
910
+ "currentTime": 1170.16,
911
+ "duration": 12060.666,
912
+ "decoder": "mse",
913
+ "reconnects": 0,
914
+ "tracks": [
915
+ {
916
+ "kind": "video",
917
+ "codec": "avc"
918
+ },
919
+ {
920
+ "kind": "audio",
921
+ "codec": "aac"
922
+ }
923
+ ],
924
+ "video": {
925
+ "width": 960,
926
+ "height": 540,
927
+ "readyState": 4,
928
+ "display": "block"
929
+ },
930
+ "canvas": {
931
+ "width": 300,
932
+ "height": 150,
933
+ "display": "none"
934
+ },
935
+ "stats": {
936
+ "protocol": "hls",
937
+ "decoder": "mse",
938
+ "videoCodec": "H.264",
939
+ "width": 960,
940
+ "height": 540,
941
+ "fps": 53.9,
942
+ "kbps": 26058,
943
+ "frames": 54,
944
+ "dropped": 0,
945
+ "audioFrames": 0,
946
+ "audioPeak": 0,
947
+ "audioState": "none",
948
+ "audioVolume": 0,
949
+ "audioPath": "mse",
950
+ "decodeWorker": false,
951
+ "bufferAhead": 11.13
952
+ },
953
+ "error": null
954
+ },
955
+ "logs": [
956
+ "info: loading hls http://127.0.0.1:8123/fixtures/master.m3u8",
957
+ "info: decoder: MSE"
958
+ ]
959
+ }
960
+
961
+ === hls-abr (mse) ===
962
+ {
963
+ "name": "hls-abr",
964
+ "ok": true,
965
+ "elapsedMs": 3026,
966
+ "probe": {
967
+ "ok": true,
968
+ "changes": [
969
+ 400000,
970
+ 2000000
971
+ ],
972
+ "bandwidth": 2000000,
973
+ "time": 2988
974
+ },
975
+ "snapshot": {
976
+ "currentTime": 1173.45,
977
+ "duration": 192000,
978
+ "decoder": "mse",
979
+ "reconnects": 0,
980
+ "tracks": [
981
+ {
982
+ "kind": "video",
983
+ "codec": "avc"
984
+ }
985
+ ],
986
+ "video": {
987
+ "width": 960,
988
+ "height": 540,
989
+ "readyState": 4,
990
+ "display": "block"
991
+ },
992
+ "canvas": {
993
+ "width": 300,
994
+ "height": 150,
995
+ "display": "none"
996
+ },
997
+ "stats": {
998
+ "protocol": "hls",
999
+ "decoder": "mse",
1000
+ "videoCodec": "H.264",
1001
+ "width": 960,
1002
+ "height": 540,
1003
+ "fps": 57,
1004
+ "kbps": 132794,
1005
+ "frames": 57,
1006
+ "dropped": 0,
1007
+ "audioFrames": 0,
1008
+ "audioPeak": 0,
1009
+ "audioState": "none",
1010
+ "audioVolume": 0,
1011
+ "audioPath": "none",
1012
+ "decodeWorker": false,
1013
+ "bufferAhead": 64.76
1014
+ },
1015
+ "error": null
1016
+ },
1017
+ "logs": [
1018
+ "info: loading hls http://127.0.0.1:8123/fixtures/abr-master.m3u8",
1019
+ "info: decoder: MSE"
1020
+ ]
1021
+ }
1022
+
1023
+ === hls-discontinuity (mse) ===
1024
+ {
1025
+ "name": "hls-discontinuity",
1026
+ "ok": true,
1027
+ "elapsedMs": 4229,
1028
+ "probe": {
1029
+ "ok": true,
1030
+ "time": 13195.35,
1031
+ "duration": 24016.67,
1032
+ "error": null
1033
+ },
1034
+ "snapshot": {
1035
+ "currentTime": 1173.9,
1036
+ "duration": 24016.666,
1037
+ "decoder": "mse",
1038
+ "reconnects": 0,
1039
+ "tracks": [
1040
+ {
1041
+ "kind": "video",
1042
+ "codec": "avc"
1043
+ }
1044
+ ],
1045
+ "video": {
1046
+ "width": 960,
1047
+ "height": 540,
1048
+ "readyState": 4,
1049
+ "display": "block"
1050
+ },
1051
+ "canvas": {
1052
+ "width": 300,
1053
+ "height": 150,
1054
+ "display": "none"
1055
+ },
1056
+ "stats": {
1057
+ "protocol": "hls",
1058
+ "decoder": "mse",
1059
+ "videoCodec": "H.264",
1060
+ "width": 960,
1061
+ "height": 540,
1062
+ "fps": 57,
1063
+ "kbps": 48298,
1064
+ "frames": 57,
1065
+ "dropped": 0,
1066
+ "audioFrames": 0,
1067
+ "audioPeak": 0,
1068
+ "audioState": "none",
1069
+ "audioVolume": 0,
1070
+ "audioPath": "none",
1071
+ "decodeWorker": false,
1072
+ "bufferAhead": 23.05
1073
+ },
1074
+ "error": null
1075
+ },
1076
+ "logs": [
1077
+ "info: loading hls http://127.0.0.1:8123/fixtures/discontinuity.m3u8",
1078
+ "info: decoder: MSE"
1079
+ ]
1080
+ }
1081
+
1082
+ === llhls-parts (mse) ===
1083
+ {
1084
+ "name": "llhls-parts",
1085
+ "ok": true,
1086
+ "elapsedMs": 1636,
1087
+ "probe": {
1088
+ "ok": true,
1089
+ "time": 1611,
1090
+ "parts": 4,
1091
+ "full": 0,
1092
+ "blocked": 3,
1093
+ "keys": 1
1094
+ },
1095
+ "snapshot": {
1096
+ "currentTime": 1168.33,
1097
+ "duration": "inf",
1098
+ "decoder": "mse",
1099
+ "reconnects": 0,
1100
+ "tracks": [
1101
+ {
1102
+ "kind": "video",
1103
+ "codec": "avc"
1104
+ }
1105
+ ],
1106
+ "video": {
1107
+ "width": 960,
1108
+ "height": 540,
1109
+ "readyState": 4,
1110
+ "display": "block"
1111
+ },
1112
+ "canvas": {
1113
+ "width": 300,
1114
+ "height": 150,
1115
+ "display": "none"
1116
+ },
1117
+ "stats": {
1118
+ "protocol": "hls",
1119
+ "decoder": "mse",
1120
+ "videoCodec": "H.264",
1121
+ "width": 960,
1122
+ "height": 540,
1123
+ "fps": 57,
1124
+ "kbps": 6032,
1125
+ "frames": 57,
1126
+ "dropped": 0,
1127
+ "audioFrames": 0,
1128
+ "audioPeak": 0,
1129
+ "audioState": "none",
1130
+ "audioVolume": 0,
1131
+ "audioPath": "none",
1132
+ "decodeWorker": false,
1133
+ "bufferAhead": 1.52
1134
+ },
1135
+ "error": null
1136
+ },
1137
+ "logs": [
1138
+ "info: loading hls http://127.0.0.1:8123/fixtures/llhls.m3u8",
1139
+ "info: decoder: MSE"
1140
+ ]
1141
+ }
1142
+
1143
+ === hls-aes128 (mse) ===
1144
+ {
1145
+ "name": "hls-aes128",
1146
+ "ok": true,
1147
+ "elapsedMs": 2627,
1148
+ "probe": {
1149
+ "ok": true,
1150
+ "time": 6821,
1151
+ "duration": 12039,
1152
+ "keys": 1,
1153
+ "error": null
1154
+ },
1155
+ "snapshot": {
1156
+ "currentTime": 1168.27,
1157
+ "duration": 12039.283,
1158
+ "decoder": "mse",
1159
+ "reconnects": 0,
1160
+ "tracks": [
1161
+ {
1162
+ "kind": "video",
1163
+ "codec": "avc"
1164
+ }
1165
+ ],
1166
+ "video": {
1167
+ "width": 960,
1168
+ "height": 540,
1169
+ "readyState": 4,
1170
+ "display": "block"
1171
+ },
1172
+ "canvas": {
1173
+ "width": 300,
1174
+ "height": 150,
1175
+ "display": "none"
1176
+ },
1177
+ "stats": {
1178
+ "protocol": "hls",
1179
+ "decoder": "mse",
1180
+ "videoCodec": "H.264",
1181
+ "width": 960,
1182
+ "height": 540,
1183
+ "fps": 57.8,
1184
+ "kbps": 36120,
1185
+ "frames": 58,
1186
+ "dropped": 0,
1187
+ "audioFrames": 0,
1188
+ "audioPeak": 0,
1189
+ "audioState": "none",
1190
+ "audioVolume": 0,
1191
+ "audioPath": "none",
1192
+ "decodeWorker": false,
1193
+ "bufferAhead": 11.07
1194
+ },
1195
+ "error": null
1196
+ },
1197
+ "logs": [
1198
+ "info: loading hls http://127.0.0.1:8123/fixtures/aes.m3u8",
1199
+ "info: decoder: MSE"
1200
+ ]
1201
+ }
1202
+
1203
+ === hls-aes256 (mse) ===
1204
+ {
1205
+ "name": "hls-aes256",
1206
+ "ok": true,
1207
+ "elapsedMs": 2630,
1208
+ "probe": {
1209
+ "ok": true,
1210
+ "time": 6822,
1211
+ "duration": 12017,
1212
+ "gcm": 1,
1213
+ "error": null
1214
+ },
1215
+ "snapshot": {
1216
+ "currentTime": 1179.82,
1217
+ "duration": 12016.666000000001,
1218
+ "decoder": "mse",
1219
+ "reconnects": 0,
1220
+ "tracks": [
1221
+ {
1222
+ "kind": "video",
1223
+ "codec": "avc"
1224
+ }
1225
+ ],
1226
+ "video": {
1227
+ "width": 960,
1228
+ "height": 540,
1229
+ "readyState": 4,
1230
+ "display": "block"
1231
+ },
1232
+ "canvas": {
1233
+ "width": 300,
1234
+ "height": 150,
1235
+ "display": "none"
1236
+ },
1237
+ "stats": {
1238
+ "protocol": "hls",
1239
+ "decoder": "mse",
1240
+ "videoCodec": "H.264",
1241
+ "width": 960,
1242
+ "height": 540,
1243
+ "fps": 56.7,
1244
+ "kbps": 24026,
1245
+ "frames": 57,
1246
+ "dropped": 0,
1247
+ "audioFrames": 0,
1248
+ "audioPeak": 0,
1249
+ "audioState": "none",
1250
+ "audioVolume": 0,
1251
+ "audioPath": "none",
1252
+ "decodeWorker": false,
1253
+ "bufferAhead": 11.04
1254
+ },
1255
+ "error": null
1256
+ },
1257
+ "logs": [
1258
+ "info: loading hls http://127.0.0.1:8123/fixtures/aes-gcm.m3u8",
1259
+ "info: decoder: MSE"
1260
+ ]
1261
+ }
1262
+
1263
+ === ws-flv (mse) ===
1264
+ {
1265
+ "name": "ws-flv",
1266
+ "ok": true,
1267
+ "elapsedMs": 1214,
1268
+ "probe": null,
1269
+ "snapshot": {
1270
+ "currentTime": 1162.86,
1271
+ "duration": "inf",
1272
+ "decoder": "mse",
1273
+ "reconnects": 0,
1274
+ "tracks": [
1275
+ {
1276
+ "kind": "video",
1277
+ "codec": "avc"
1278
+ },
1279
+ {
1280
+ "kind": "audio",
1281
+ "codec": "aac"
1282
+ }
1283
+ ],
1284
+ "video": {
1285
+ "width": 640,
1286
+ "height": 360,
1287
+ "readyState": 4,
1288
+ "display": "block"
1289
+ },
1290
+ "canvas": {
1291
+ "width": 300,
1292
+ "height": 150,
1293
+ "display": "none"
1294
+ },
1295
+ "stats": {
1296
+ "protocol": "ws-flv",
1297
+ "decoder": "mse",
1298
+ "videoCodec": "H.264",
1299
+ "width": 640,
1300
+ "height": 360,
1301
+ "fps": 22.5,
1302
+ "kbps": 16400,
1303
+ "frames": 23,
1304
+ "dropped": 0,
1305
+ "audioFrames": 0,
1306
+ "audioPeak": 0,
1307
+ "audioState": "none",
1308
+ "audioVolume": 0,
1309
+ "audioPath": "mse",
1310
+ "decodeWorker": false,
1311
+ "bufferAhead": 25.26
1312
+ },
1313
+ "error": null
1314
+ },
1315
+ "logs": [
1316
+ "info: loading ws-flv ws://127.0.0.1:8123/live.flv",
1317
+ "info: decoder: MSE"
1318
+ ]
1319
+ }
1320
+
1321
+ === http-fmp4 (mse) ===
1322
+ {
1323
+ "name": "http-fmp4",
1324
+ "ok": true,
1325
+ "elapsedMs": 1220,
1326
+ "probe": null,
1327
+ "snapshot": {
1328
+ "currentTime": 1174.69,
1329
+ "duration": 12016.666000000001,
1330
+ "decoder": "mse",
1331
+ "reconnects": 0,
1332
+ "tracks": [
1333
+ {
1334
+ "kind": "video",
1335
+ "codec": "avc"
1336
+ }
1337
+ ],
1338
+ "video": {
1339
+ "width": 960,
1340
+ "height": 540,
1341
+ "readyState": 4,
1342
+ "display": "block"
1343
+ },
1344
+ "canvas": {
1345
+ "width": 300,
1346
+ "height": 150,
1347
+ "display": "none"
1348
+ },
1349
+ "stats": {
1350
+ "protocol": "mp4",
1351
+ "decoder": "mse",
1352
+ "videoCodec": "H.264",
1353
+ "width": 960,
1354
+ "height": 540,
1355
+ "fps": 57.3,
1356
+ "kbps": 23865,
1357
+ "frames": 58,
1358
+ "dropped": 0,
1359
+ "audioFrames": 0,
1360
+ "audioPeak": 0,
1361
+ "audioState": "none",
1362
+ "audioVolume": 0,
1363
+ "audioPath": "none",
1364
+ "decodeWorker": false,
1365
+ "bufferAhead": 11.04
1366
+ },
1367
+ "error": null
1368
+ },
1369
+ "logs": [
1370
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/video-only.mp4",
1371
+ "info: decoder: MSE"
1372
+ ]
1373
+ }
1374
+
1375
+ === g711-tone (mse) ===
1376
+ {
1377
+ "name": "g711-tone",
1378
+ "ok": true,
1379
+ "elapsedMs": 1211,
1380
+ "probe": null,
1381
+ "snapshot": {
1382
+ "currentTime": 1164.09,
1383
+ "duration": "inf",
1384
+ "decoder": "mse",
1385
+ "reconnects": 0,
1386
+ "tracks": [
1387
+ {
1388
+ "kind": "video",
1389
+ "codec": "avc"
1390
+ },
1391
+ {
1392
+ "kind": "audio",
1393
+ "codec": "g711a"
1394
+ }
1395
+ ],
1396
+ "video": {
1397
+ "width": 640,
1398
+ "height": 360,
1399
+ "readyState": 4,
1400
+ "display": "block"
1401
+ },
1402
+ "canvas": {
1403
+ "width": 300,
1404
+ "height": 150,
1405
+ "display": "none"
1406
+ },
1407
+ "stats": {
1408
+ "protocol": "flv",
1409
+ "decoder": "mse",
1410
+ "videoCodec": "H.264",
1411
+ "width": 640,
1412
+ "height": 360,
1413
+ "fps": 21.5,
1414
+ "kbps": 43110,
1415
+ "frames": 22,
1416
+ "dropped": 0,
1417
+ "audioFrames": 3880,
1418
+ "audioPeak": 0.4921875,
1419
+ "audioState": "running",
1420
+ "audioVolume": 0,
1421
+ "audioPath": "webaudio",
1422
+ "decodeWorker": false,
1423
+ "bufferAhead": 89.15
1424
+ },
1425
+ "error": null
1426
+ },
1427
+ "logs": [
1428
+ "info: loading flv http://127.0.0.1:8123/fixtures/g711-tone.flv",
1429
+ "info: decoder: MSE"
1430
+ ]
1431
+ }
1432
+
1433
+ === controls (mse) ===
1434
+ {
1435
+ "name": "controls",
1436
+ "ok": true,
1437
+ "elapsedMs": 2448,
1438
+ "probe": {
1439
+ "ok": true,
1440
+ "hasBar": true,
1441
+ "shot": 693131,
1442
+ "rec": 341106,
1443
+ "rate": 1.5
1444
+ },
1445
+ "snapshot": {
1446
+ "currentTime": 1090.45,
1447
+ "duration": 5071.733,
1448
+ "decoder": "mse",
1449
+ "reconnects": 0,
1450
+ "tracks": [
1451
+ {
1452
+ "kind": "video",
1453
+ "codec": "avc"
1454
+ },
1455
+ {
1456
+ "kind": "audio",
1457
+ "codec": "aac"
1458
+ }
1459
+ ],
1460
+ "video": {
1461
+ "width": 960,
1462
+ "height": 540,
1463
+ "readyState": 4,
1464
+ "display": "block"
1465
+ },
1466
+ "canvas": {
1467
+ "width": 300,
1468
+ "height": 150,
1469
+ "display": "none"
1470
+ },
1471
+ "stats": {
1472
+ "protocol": "mp4",
1473
+ "decoder": "mse",
1474
+ "videoCodec": "H.264",
1475
+ "width": 960,
1476
+ "height": 540,
1477
+ "fps": 27,
1478
+ "kbps": 9027,
1479
+ "frames": 27,
1480
+ "dropped": 0,
1481
+ "audioFrames": 0,
1482
+ "audioPeak": 0,
1483
+ "audioState": "none",
1484
+ "audioVolume": 0,
1485
+ "audioPath": "mse",
1486
+ "decodeWorker": false,
1487
+ "bufferAhead": 4.1
1488
+ },
1489
+ "error": null
1490
+ },
1491
+ "logs": [
1492
+ "info: loading mp4 https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
1493
+ "info: decoder: MSE"
1494
+ ]
1495
+ }
1496
+
1497
+ === reconnect (mse) ===
1498
+ {
1499
+ "name": "reconnect",
1500
+ "ok": true,
1501
+ "elapsedMs": 2016,
1502
+ "probe": null,
1503
+ "snapshot": {
1504
+ "currentTime": 1930.06,
1505
+ "duration": "inf",
1506
+ "decoder": "mse",
1507
+ "reconnects": 1,
1508
+ "tracks": [
1509
+ {
1510
+ "kind": "video",
1511
+ "codec": "avc"
1512
+ },
1513
+ {
1514
+ "kind": "audio",
1515
+ "codec": "aac"
1516
+ }
1517
+ ],
1518
+ "video": {
1519
+ "width": 640,
1520
+ "height": 360,
1521
+ "readyState": 4,
1522
+ "display": "block"
1523
+ },
1524
+ "canvas": {
1525
+ "width": 300,
1526
+ "height": 150,
1527
+ "display": "none"
1528
+ },
1529
+ "stats": {
1530
+ "protocol": "flv",
1531
+ "decoder": "mse",
1532
+ "videoCodec": "H.264",
1533
+ "width": 640,
1534
+ "height": 360,
1535
+ "fps": 19.7,
1536
+ "kbps": 3286,
1537
+ "frames": 20,
1538
+ "dropped": 0,
1539
+ "audioFrames": 0,
1540
+ "audioPeak": 0,
1541
+ "audioState": "none",
1542
+ "audioVolume": 0,
1543
+ "audioPath": "mse",
1544
+ "decodeWorker": false,
1545
+ "bufferAhead": 5.91
1546
+ },
1547
+ "error": null
1548
+ },
1549
+ "logs": [
1550
+ "info: loading flv http://127.0.0.1:8123/fixtures/flaky.flv",
1551
+ "info: decoder: MSE",
1552
+ "warn: live stream interrupted: Error in input stream",
1553
+ "reconnecting 1/3"
1554
+ ]
1555
+ }
1556
+
1557
+ === error-json (auto) ===
1558
+ {
1559
+ "name": "error-json",
1560
+ "ok": true,
1561
+ "elapsedMs": 2,
1562
+ "probe": null,
1563
+ "snapshot": {
1564
+ "currentTime": 0,
1565
+ "duration": "inf",
1566
+ "decoder": "none",
1567
+ "reconnects": 0,
1568
+ "tracks": [],
1569
+ "video": {
1570
+ "width": 0,
1571
+ "height": 0,
1572
+ "readyState": 0,
1573
+ "display": "block"
1574
+ },
1575
+ "canvas": {
1576
+ "width": 300,
1577
+ "height": 150,
1578
+ "display": "none"
1579
+ },
1580
+ "stats": {
1581
+ "protocol": "flv",
1582
+ "decoder": "none",
1583
+ "videoCodec": null,
1584
+ "width": 0,
1585
+ "height": 0,
1586
+ "fps": 0,
1587
+ "kbps": 0,
1588
+ "frames": 0,
1589
+ "dropped": 0,
1590
+ "audioFrames": 0,
1591
+ "audioPeak": 0,
1592
+ "audioState": "none",
1593
+ "audioVolume": 1,
1594
+ "audioPath": "none",
1595
+ "decodeWorker": false,
1596
+ "bufferAhead": 0
1597
+ },
1598
+ "error": {
1599
+ "code": "HTTP_STATUS",
1600
+ "message": "HTTP 404: 无效的流地址"
1601
+ }
1602
+ },
1603
+ "logs": [
1604
+ "info: loading flv http://127.0.0.1:8123/fixtures/error.json",
1605
+ "error: HTTP 404: 无效的流地址"
1606
+ ]
1607
+ }
1608
+
1609
+ === hls-auto (auto) ===
1610
+ {
1611
+ "name": "hls-auto",
1612
+ "ok": true,
1613
+ "elapsedMs": 1628,
1614
+ "probe": null,
1615
+ "snapshot": {
1616
+ "currentTime": 1251.02,
1617
+ "duration": 634567,
1618
+ "decoder": "mse",
1619
+ "reconnects": 0,
1620
+ "tracks": [
1621
+ {
1622
+ "kind": "video",
1623
+ "codec": "avc"
1624
+ },
1625
+ {
1626
+ "kind": "audio",
1627
+ "codec": "aac"
1628
+ }
1629
+ ],
1630
+ "video": {
1631
+ "width": 1920,
1632
+ "height": 1080,
1633
+ "readyState": 4,
1634
+ "display": "block"
1635
+ },
1636
+ "canvas": {
1637
+ "width": 300,
1638
+ "height": 150,
1639
+ "display": "none"
1640
+ },
1641
+ "stats": {
1642
+ "protocol": "hls",
1643
+ "decoder": "mse",
1644
+ "videoCodec": "H.264",
1645
+ "width": 1920,
1646
+ "height": 1080,
1647
+ "fps": 53,
1648
+ "kbps": 362802,
1649
+ "frames": 53,
1650
+ "dropped": 0,
1651
+ "audioFrames": 0,
1652
+ "audioPeak": 0,
1653
+ "audioState": "none",
1654
+ "audioVolume": 0,
1655
+ "audioPath": "mse",
1656
+ "decodeWorker": false,
1657
+ "bufferAhead": 48.68
1658
+ },
1659
+ "error": null
1660
+ },
1661
+ "logs": [
1662
+ "info: loading hls https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
1663
+ "info: decoder: MSE"
1664
+ ]
1665
+ }
1666
+
1667
+ E2E (firefox): all scenarios passed