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
+
2
+ === hls-mse (mse) ===
3
+ {
4
+ "name": "hls-mse",
5
+ "ok": true,
6
+ "elapsedMs": 2023,
7
+ "probe": null,
8
+ "snapshot": {
9
+ "currentTime": 1103.94,
10
+ "duration": 634567,
11
+ "decoder": "mse",
12
+ "reconnects": 0,
13
+ "tracks": [
14
+ {
15
+ "kind": "video",
16
+ "codec": "avc"
17
+ },
18
+ {
19
+ "kind": "audio",
20
+ "codec": "aac"
21
+ }
22
+ ],
23
+ "video": {
24
+ "width": 1920,
25
+ "height": 1080,
26
+ "readyState": 4,
27
+ "display": "block"
28
+ },
29
+ "canvas": {
30
+ "width": 300,
31
+ "height": 150,
32
+ "display": "none"
33
+ },
34
+ "stats": {
35
+ "protocol": "hls",
36
+ "decoder": "mse",
37
+ "videoCodec": "H.264",
38
+ "width": 1920,
39
+ "height": 1080,
40
+ "fps": 57,
41
+ "kbps": 199972,
42
+ "frames": 57,
43
+ "dropped": 14,
44
+ "audioFrames": 0,
45
+ "audioPeak": 0,
46
+ "audioState": "none",
47
+ "audioVolume": 0,
48
+ "audioPath": "mse",
49
+ "decodeWorker": false,
50
+ "bufferAhead": 28.97
51
+ },
52
+ "error": null
53
+ },
54
+ "logs": [
55
+ "info: loading hls https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
56
+ "info: decoder: MSE"
57
+ ]
58
+ }
59
+
60
+ === flv-mse (mse) ===
61
+ {
62
+ "name": "flv-mse",
63
+ "ok": true,
64
+ "elapsedMs": 1211,
65
+ "probe": null,
66
+ "snapshot": {
67
+ "currentTime": 1020.77,
68
+ "duration": 90120,
69
+ "decoder": "mse",
70
+ "reconnects": 0,
71
+ "tracks": [
72
+ {
73
+ "kind": "video",
74
+ "codec": "avc"
75
+ },
76
+ {
77
+ "kind": "audio",
78
+ "codec": "aac"
79
+ }
80
+ ],
81
+ "video": {
82
+ "width": 640,
83
+ "height": 360,
84
+ "readyState": 4,
85
+ "display": "block"
86
+ },
87
+ "canvas": {
88
+ "width": 300,
89
+ "height": 150,
90
+ "display": "none"
91
+ },
92
+ "stats": {
93
+ "protocol": "flv",
94
+ "decoder": "mse",
95
+ "videoCodec": "H.264",
96
+ "width": 640,
97
+ "height": 360,
98
+ "fps": 26,
99
+ "kbps": 44089,
100
+ "frames": 26,
101
+ "dropped": 0,
102
+ "audioFrames": 0,
103
+ "audioPeak": 0,
104
+ "audioState": "none",
105
+ "audioVolume": 0,
106
+ "audioPath": "mse",
107
+ "decodeWorker": false,
108
+ "bufferAhead": 89.19
109
+ },
110
+ "error": null
111
+ },
112
+ "logs": [
113
+ "info: loading flv https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv",
114
+ "info: decoder: MSE"
115
+ ]
116
+ }
117
+
118
+ === mp4-mse (mse) ===
119
+ {
120
+ "name": "mp4-mse",
121
+ "ok": true,
122
+ "elapsedMs": 1614,
123
+ "probe": null,
124
+ "snapshot": {
125
+ "currentTime": 1070.83,
126
+ "duration": 5071.732,
127
+ "decoder": "mse",
128
+ "reconnects": 0,
129
+ "tracks": [
130
+ {
131
+ "kind": "video",
132
+ "codec": "avc"
133
+ },
134
+ {
135
+ "kind": "audio",
136
+ "codec": "aac"
137
+ }
138
+ ],
139
+ "video": {
140
+ "width": 960,
141
+ "height": 540,
142
+ "readyState": 4,
143
+ "display": "block"
144
+ },
145
+ "canvas": {
146
+ "width": 300,
147
+ "height": 150,
148
+ "display": "none"
149
+ },
150
+ "stats": {
151
+ "protocol": "mp4",
152
+ "decoder": "mse",
153
+ "videoCodec": "H.264",
154
+ "width": 960,
155
+ "height": 540,
156
+ "fps": 31,
157
+ "kbps": 9023,
158
+ "frames": 31,
159
+ "dropped": 0,
160
+ "audioFrames": 0,
161
+ "audioPeak": 0,
162
+ "audioState": "none",
163
+ "audioVolume": 0,
164
+ "audioPath": "mse",
165
+ "decodeWorker": false,
166
+ "bufferAhead": 4.16
167
+ },
168
+ "error": null
169
+ },
170
+ "logs": [
171
+ "info: loading mp4 https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
172
+ "info: decoder: MSE"
173
+ ]
174
+ }
175
+
176
+ === hevc-software (software) ===
177
+ {
178
+ "name": "hevc-software",
179
+ "ok": true,
180
+ "elapsedMs": 1250,
181
+ "probe": {
182
+ "ok": true,
183
+ "shot": 477865
184
+ },
185
+ "snapshot": {
186
+ "currentTime": 1164.27,
187
+ "duration": 10000,
188
+ "decoder": "software",
189
+ "reconnects": 0,
190
+ "tracks": [
191
+ {
192
+ "kind": "video",
193
+ "codec": "hevc"
194
+ }
195
+ ],
196
+ "video": {
197
+ "width": 0,
198
+ "height": 0,
199
+ "readyState": 0,
200
+ "display": "none"
201
+ },
202
+ "canvas": {
203
+ "width": 640,
204
+ "height": 360,
205
+ "display": "block"
206
+ },
207
+ "stats": {
208
+ "protocol": "mp4",
209
+ "decoder": "software",
210
+ "videoCodec": "HEVC",
211
+ "width": 1280,
212
+ "height": 720,
213
+ "fps": 33,
214
+ "kbps": 8469,
215
+ "frames": 33,
216
+ "dropped": 0,
217
+ "audioFrames": 0,
218
+ "audioPeak": 0,
219
+ "audioState": "none",
220
+ "audioVolume": 1,
221
+ "audioPath": "none",
222
+ "decodeWorker": false,
223
+ "bufferAhead": 8.58
224
+ },
225
+ "error": null
226
+ },
227
+ "logs": [
228
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
229
+ "info: decoder: software (libde265)"
230
+ ]
231
+ }
232
+
233
+ === h264-high-software (software) ===
234
+ {
235
+ "name": "h264-high-software",
236
+ "ok": true,
237
+ "elapsedMs": 1237,
238
+ "probe": {
239
+ "ok": true,
240
+ "shot": 36064,
241
+ "avg": 132
242
+ },
243
+ "snapshot": {
244
+ "currentTime": 1189.97,
245
+ "duration": "inf",
246
+ "decoder": "software",
247
+ "reconnects": 0,
248
+ "tracks": [
249
+ {
250
+ "kind": "video",
251
+ "codec": "avc"
252
+ }
253
+ ],
254
+ "video": {
255
+ "width": 0,
256
+ "height": 0,
257
+ "readyState": 0,
258
+ "display": "none"
259
+ },
260
+ "canvas": {
261
+ "width": 640,
262
+ "height": 360,
263
+ "display": "block"
264
+ },
265
+ "stats": {
266
+ "protocol": "mp4",
267
+ "decoder": "software",
268
+ "videoCodec": "H.264",
269
+ "width": 960,
270
+ "height": 540,
271
+ "fps": 65,
272
+ "kbps": 24147,
273
+ "frames": 65,
274
+ "dropped": 4,
275
+ "audioFrames": 0,
276
+ "audioPeak": 0,
277
+ "audioState": "none",
278
+ "audioVolume": 1,
279
+ "audioPath": "none",
280
+ "decodeWorker": false,
281
+ "bufferAhead": 10.64
282
+ },
283
+ "error": null
284
+ },
285
+ "logs": [
286
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/video-only.mp4",
287
+ "info: decoder: software (OpenH264)"
288
+ ]
289
+ }
290
+
291
+ === h264-high-worker (software) ===
292
+ {
293
+ "name": "h264-high-worker",
294
+ "ok": true,
295
+ "elapsedMs": 1211,
296
+ "probe": null,
297
+ "snapshot": {
298
+ "currentTime": 1165.27,
299
+ "duration": "inf",
300
+ "decoder": "software",
301
+ "reconnects": 0,
302
+ "tracks": [
303
+ {
304
+ "kind": "video",
305
+ "codec": "avc"
306
+ }
307
+ ],
308
+ "video": {
309
+ "width": 0,
310
+ "height": 0,
311
+ "readyState": 0,
312
+ "display": "none"
313
+ },
314
+ "canvas": {
315
+ "width": 640,
316
+ "height": 360,
317
+ "display": "block"
318
+ },
319
+ "stats": {
320
+ "protocol": "mp4",
321
+ "decoder": "software",
322
+ "videoCodec": "H.264",
323
+ "width": 960,
324
+ "height": 540,
325
+ "fps": 66,
326
+ "kbps": 24142,
327
+ "frames": 66,
328
+ "dropped": 2,
329
+ "audioFrames": 0,
330
+ "audioPeak": 0,
331
+ "audioState": "none",
332
+ "audioVolume": 1,
333
+ "audioPath": "none",
334
+ "decodeWorker": true,
335
+ "bufferAhead": 10.64
336
+ },
337
+ "error": null
338
+ },
339
+ "logs": [
340
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/video-only.mp4",
341
+ "info: decoder: software (OpenH264)"
342
+ ]
343
+ }
344
+
345
+ === hevc-software-worker (software) ===
346
+ {
347
+ "name": "hevc-software-worker",
348
+ "ok": true,
349
+ "elapsedMs": 1223,
350
+ "probe": {
351
+ "ok": true,
352
+ "avg": 84,
353
+ "shot": 560443
354
+ },
355
+ "snapshot": {
356
+ "currentTime": 1149.07,
357
+ "duration": 10000,
358
+ "decoder": "software",
359
+ "reconnects": 0,
360
+ "tracks": [
361
+ {
362
+ "kind": "video",
363
+ "codec": "hevc"
364
+ }
365
+ ],
366
+ "video": {
367
+ "width": 0,
368
+ "height": 0,
369
+ "readyState": 0,
370
+ "display": "none"
371
+ },
372
+ "canvas": {
373
+ "width": 640,
374
+ "height": 360,
375
+ "display": "block"
376
+ },
377
+ "stats": {
378
+ "protocol": "mp4",
379
+ "decoder": "software",
380
+ "videoCodec": "HEVC",
381
+ "width": 1280,
382
+ "height": 720,
383
+ "fps": 34,
384
+ "kbps": 8473,
385
+ "frames": 34,
386
+ "dropped": 0,
387
+ "audioFrames": 0,
388
+ "audioPeak": 0,
389
+ "audioState": "none",
390
+ "audioVolume": 1,
391
+ "audioPath": "none",
392
+ "decodeWorker": true,
393
+ "bufferAhead": 8.58
394
+ },
395
+ "error": null
396
+ },
397
+ "logs": [
398
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
399
+ "info: decoder: software (libde265)"
400
+ ]
401
+ }
402
+
403
+ === hevc-umd-worker (software) ===
404
+ {
405
+ "name": "hevc-umd-worker",
406
+ "ok": true,
407
+ "elapsedMs": 1210,
408
+ "probe": null,
409
+ "snapshot": {
410
+ "currentTime": 1159.87,
411
+ "duration": 10000,
412
+ "decoder": "software",
413
+ "reconnects": 0,
414
+ "tracks": [
415
+ {
416
+ "kind": "video",
417
+ "codec": "hevc"
418
+ }
419
+ ],
420
+ "video": {
421
+ "width": 0,
422
+ "height": 0,
423
+ "readyState": 0,
424
+ "display": "none"
425
+ },
426
+ "canvas": {
427
+ "width": 640,
428
+ "height": 360,
429
+ "display": "block"
430
+ },
431
+ "stats": {
432
+ "protocol": "mp4",
433
+ "decoder": "software",
434
+ "videoCodec": "HEVC",
435
+ "width": 1280,
436
+ "height": 720,
437
+ "fps": 34,
438
+ "kbps": 8473,
439
+ "frames": 34,
440
+ "dropped": 0,
441
+ "audioFrames": 0,
442
+ "audioPeak": 0,
443
+ "audioState": "none",
444
+ "audioVolume": 1,
445
+ "audioPath": "none",
446
+ "decodeWorker": true,
447
+ "bufferAhead": 8.58
448
+ },
449
+ "error": null
450
+ },
451
+ "logs": [
452
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
453
+ "info: decoder: software (libde265)"
454
+ ]
455
+ }
456
+
457
+ === hevc-1080p-main (software) ===
458
+ {
459
+ "name": "hevc-1080p-main",
460
+ "ok": true,
461
+ "elapsedMs": 5223,
462
+ "probe": {
463
+ "ok": true,
464
+ "fps": 29.9,
465
+ "frames": 152,
466
+ "dropped": 0,
467
+ "maxGap": 85,
468
+ "maxBacklog": 8.5
469
+ },
470
+ "snapshot": {
471
+ "currentTime": 1133.47,
472
+ "duration": 10000,
473
+ "decoder": "software",
474
+ "reconnects": 0,
475
+ "tracks": [
476
+ {
477
+ "kind": "video",
478
+ "codec": "hevc"
479
+ }
480
+ ],
481
+ "video": {
482
+ "width": 0,
483
+ "height": 0,
484
+ "readyState": 0,
485
+ "display": "none"
486
+ },
487
+ "canvas": {
488
+ "width": 640,
489
+ "height": 360,
490
+ "display": "block"
491
+ },
492
+ "stats": {
493
+ "protocol": "mp4",
494
+ "decoder": "software",
495
+ "videoCodec": "HEVC",
496
+ "width": 1920,
497
+ "height": 1080,
498
+ "fps": 32,
499
+ "kbps": 16802,
500
+ "frames": 32,
501
+ "dropped": 0,
502
+ "audioFrames": 0,
503
+ "audioPeak": 0,
504
+ "audioState": "none",
505
+ "audioVolume": 1,
506
+ "audioPath": "none",
507
+ "decodeWorker": false,
508
+ "bufferAhead": 8.54
509
+ },
510
+ "error": null
511
+ },
512
+ "logs": [
513
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc-1080.mp4",
514
+ "info: decoder: software (libde265)"
515
+ ]
516
+ }
517
+
518
+ === hevc-1080p-worker (software) ===
519
+ {
520
+ "name": "hevc-1080p-worker",
521
+ "ok": true,
522
+ "elapsedMs": 5215,
523
+ "probe": {
524
+ "ok": true,
525
+ "fps": 30.7,
526
+ "frames": 151,
527
+ "dropped": 1,
528
+ "maxGap": 50,
529
+ "maxBacklog": 8.6
530
+ },
531
+ "snapshot": {
532
+ "currentTime": 1099.37,
533
+ "duration": 10000,
534
+ "decoder": "software",
535
+ "reconnects": 0,
536
+ "tracks": [
537
+ {
538
+ "kind": "video",
539
+ "codec": "hevc"
540
+ }
541
+ ],
542
+ "video": {
543
+ "width": 0,
544
+ "height": 0,
545
+ "readyState": 0,
546
+ "display": "none"
547
+ },
548
+ "canvas": {
549
+ "width": 640,
550
+ "height": 360,
551
+ "display": "block"
552
+ },
553
+ "stats": {
554
+ "protocol": "mp4",
555
+ "decoder": "software",
556
+ "videoCodec": "HEVC",
557
+ "width": 1920,
558
+ "height": 1080,
559
+ "fps": 28,
560
+ "kbps": 16798,
561
+ "frames": 28,
562
+ "dropped": 3,
563
+ "audioFrames": 0,
564
+ "audioPeak": 0,
565
+ "audioState": "none",
566
+ "audioVolume": 1,
567
+ "audioPath": "none",
568
+ "decodeWorker": true,
569
+ "bufferAhead": 8.56
570
+ },
571
+ "error": null
572
+ },
573
+ "logs": [
574
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc-1080.mp4",
575
+ "info: decoder: software (libde265)"
576
+ ]
577
+ }
578
+
579
+ === software-rate (software) ===
580
+ {
581
+ "name": "software-rate",
582
+ "ok": true,
583
+ "elapsedMs": 3221,
584
+ "probe": {
585
+ "ok": true,
586
+ "ratio": 2,
587
+ "media": 4,
588
+ "elapsed": 2
589
+ },
590
+ "snapshot": {
591
+ "currentTime": 1172.77,
592
+ "duration": 10000,
593
+ "decoder": "software",
594
+ "reconnects": 0,
595
+ "tracks": [
596
+ {
597
+ "kind": "video",
598
+ "codec": "hevc"
599
+ }
600
+ ],
601
+ "video": {
602
+ "width": 0,
603
+ "height": 0,
604
+ "readyState": 0,
605
+ "display": "none"
606
+ },
607
+ "canvas": {
608
+ "width": 640,
609
+ "height": 360,
610
+ "display": "block"
611
+ },
612
+ "stats": {
613
+ "protocol": "mp4",
614
+ "decoder": "software",
615
+ "videoCodec": "HEVC",
616
+ "width": 1280,
617
+ "height": 720,
618
+ "fps": 33,
619
+ "kbps": 8473,
620
+ "frames": 33,
621
+ "dropped": 0,
622
+ "audioFrames": 0,
623
+ "audioPeak": 0,
624
+ "audioState": "none",
625
+ "audioVolume": 1,
626
+ "audioPath": "none",
627
+ "decodeWorker": false,
628
+ "bufferAhead": 8.58
629
+ },
630
+ "error": null
631
+ },
632
+ "logs": [
633
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
634
+ "info: decoder: software (libde265)"
635
+ ]
636
+ }
637
+
638
+ === canvas-seek (webcodecs) ===
639
+ {
640
+ "name": "canvas-seek",
641
+ "ok": true,
642
+ "elapsedMs": 1617,
643
+ "probe": {
644
+ "ok": true,
645
+ "time": 6303,
646
+ "decoder": "webcodecs",
647
+ "frames": 0
648
+ },
649
+ "snapshot": {
650
+ "currentTime": 1017.33,
651
+ "duration": 12000,
652
+ "decoder": "webcodecs",
653
+ "reconnects": 0,
654
+ "tracks": [
655
+ {
656
+ "kind": "video",
657
+ "codec": "avc"
658
+ },
659
+ {
660
+ "kind": "audio",
661
+ "codec": "aac"
662
+ }
663
+ ],
664
+ "video": {
665
+ "width": 0,
666
+ "height": 0,
667
+ "readyState": 0,
668
+ "display": "none"
669
+ },
670
+ "canvas": {
671
+ "width": 960,
672
+ "height": 540,
673
+ "display": "block"
674
+ },
675
+ "stats": {
676
+ "protocol": "hls",
677
+ "decoder": "webcodecs",
678
+ "videoCodec": "H.264",
679
+ "width": 960,
680
+ "height": 540,
681
+ "fps": 57,
682
+ "kbps": 26076,
683
+ "frames": 57,
684
+ "dropped": 1,
685
+ "audioFrames": 69,
686
+ "audioPeak": 0.7114844918251038,
687
+ "audioState": "running",
688
+ "audioVolume": 1,
689
+ "audioPath": "webaudio",
690
+ "decodeWorker": false,
691
+ "bufferAhead": 0.2
692
+ },
693
+ "error": null
694
+ },
695
+ "logs": [
696
+ "info: loading hls http://127.0.0.1:8123/fixtures/master.m3u8",
697
+ "info: decoder: WebCodecs"
698
+ ]
699
+ }
700
+
701
+ === hevc-auto (auto) ===
702
+ {
703
+ "name": "hevc-auto",
704
+ "ok": true,
705
+ "elapsedMs": 1215,
706
+ "probe": null,
707
+ "snapshot": {
708
+ "currentTime": 1163.17,
709
+ "duration": 10000,
710
+ "decoder": "software",
711
+ "reconnects": 0,
712
+ "tracks": [
713
+ {
714
+ "kind": "video",
715
+ "codec": "hevc"
716
+ }
717
+ ],
718
+ "video": {
719
+ "width": 0,
720
+ "height": 0,
721
+ "readyState": 0,
722
+ "display": "none"
723
+ },
724
+ "canvas": {
725
+ "width": 640,
726
+ "height": 360,
727
+ "display": "block"
728
+ },
729
+ "stats": {
730
+ "protocol": "mp4",
731
+ "decoder": "software",
732
+ "videoCodec": "HEVC",
733
+ "width": 1280,
734
+ "height": 720,
735
+ "fps": 33,
736
+ "kbps": 8474,
737
+ "frames": 33,
738
+ "dropped": 0,
739
+ "audioFrames": 0,
740
+ "audioPeak": 0,
741
+ "audioState": "none",
742
+ "audioVolume": 1,
743
+ "audioPath": "none",
744
+ "decodeWorker": false,
745
+ "bufferAhead": 8.58
746
+ },
747
+ "error": null
748
+ },
749
+ "logs": [
750
+ "info: loading mp4 http://127.0.0.1:8123/fixtures/bbb-hevc.mp4",
751
+ "warn: WebCodecs unavailable: WebCodecs cannot decode hvc1.1.6.L93.90",
752
+ "info: decoder: software (libde265)"
753
+ ]
754
+ }
755
+
756
+ === mp4-webcodecs (webcodecs) ===
757
+ {
758
+ "name": "mp4-webcodecs",
759
+ "ok": true,
760
+ "elapsedMs": 1616,
761
+ "probe": null,
762
+ "snapshot": {
763
+ "currentTime": 964,
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": 33,
795
+ "kbps": 9025,
796
+ "frames": 33,
797
+ "dropped": 0,
798
+ "audioFrames": 62,
799
+ "audioPeak": 0,
800
+ "audioState": "running",
801
+ "audioVolume": 1,
802
+ "audioPath": "webaudio",
803
+ "decodeWorker": false,
804
+ "bufferAhead": 0.31
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": 1217,
819
+ "probe": null,
820
+ "snapshot": {
821
+ "currentTime": 1132.86,
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": 60,
853
+ "kbps": 26074,
854
+ "frames": 60,
855
+ "dropped": 0,
856
+ "audioFrames": 0,
857
+ "audioPeak": 0,
858
+ "audioState": "none",
859
+ "audioVolume": 0,
860
+ "audioPath": "mse",
861
+ "decodeWorker": false,
862
+ "bufferAhead": 11.08
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": 2819,
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": 1812,
907
+ "audioOk": true
908
+ },
909
+ "snapshot": {
910
+ "currentTime": 1138.13,
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": 60,
942
+ "kbps": 26076,
943
+ "frames": 60,
944
+ "dropped": 0,
945
+ "audioFrames": 0,
946
+ "audioPeak": 0,
947
+ "audioState": "none",
948
+ "audioVolume": 0,
949
+ "audioPath": "mse",
950
+ "decodeWorker": false,
951
+ "bufferAhead": 11.08
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": 3116,
966
+ "probe": {
967
+ "ok": true,
968
+ "changes": [
969
+ 400000,
970
+ 2000000
971
+ ],
972
+ "bandwidth": 2000000,
973
+ "time": 3045
974
+ },
975
+ "snapshot": {
976
+ "currentTime": 1139.85,
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": 64,
1004
+ "kbps": 84468,
1005
+ "frames": 64,
1006
+ "dropped": 0,
1007
+ "audioFrames": 0,
1008
+ "audioPeak": 0,
1009
+ "audioState": "none",
1010
+ "audioVolume": 0,
1011
+ "audioPath": "none",
1012
+ "decodeWorker": false,
1013
+ "bufferAhead": 40.75
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": 4216,
1028
+ "probe": {
1029
+ "ok": true,
1030
+ "time": 13140.58,
1031
+ "duration": 24016.67,
1032
+ "error": null
1033
+ },
1034
+ "snapshot": {
1035
+ "currentTime": 1141.84,
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": 64,
1063
+ "kbps": 48283,
1064
+ "frames": 64,
1065
+ "dropped": 0,
1066
+ "audioFrames": 0,
1067
+ "audioPeak": 0,
1068
+ "audioState": "none",
1069
+ "audioVolume": 0,
1070
+ "audioPath": "none",
1071
+ "decodeWorker": false,
1072
+ "bufferAhead": 23.03
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": 1610,
1087
+ "probe": {
1088
+ "ok": true,
1089
+ "time": 1550,
1090
+ "parts": 4,
1091
+ "full": 0,
1092
+ "blocked": 3,
1093
+ "keys": 1
1094
+ },
1095
+ "snapshot": {
1096
+ "currentTime": 1146.03,
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": 64,
1124
+ "kbps": 6030,
1125
+ "frames": 64,
1126
+ "dropped": 0,
1127
+ "audioFrames": 0,
1128
+ "audioPeak": 0,
1129
+ "audioState": "none",
1130
+ "audioVolume": 0,
1131
+ "audioPath": "none",
1132
+ "decodeWorker": false,
1133
+ "bufferAhead": 1.49
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": 2616,
1148
+ "probe": {
1149
+ "ok": true,
1150
+ "time": 6738,
1151
+ "duration": 12039,
1152
+ "keys": 1,
1153
+ "error": null
1154
+ },
1155
+ "snapshot": {
1156
+ "currentTime": 1139.59,
1157
+ "duration": 12039.282,
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": 64,
1184
+ "kbps": 36210,
1185
+ "frames": 64,
1186
+ "dropped": 0,
1187
+ "audioFrames": 0,
1188
+ "audioPeak": 0,
1189
+ "audioState": "none",
1190
+ "audioVolume": 0,
1191
+ "audioPath": "none",
1192
+ "decodeWorker": false,
1193
+ "bufferAhead": 11.05
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": 2614,
1208
+ "probe": {
1209
+ "ok": true,
1210
+ "time": 6736,
1211
+ "duration": 12017,
1212
+ "gcm": 1,
1213
+ "error": null
1214
+ },
1215
+ "snapshot": {
1216
+ "currentTime": 1142.79,
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": 64,
1244
+ "kbps": 24136,
1245
+ "frames": 64,
1246
+ "dropped": 0,
1247
+ "audioFrames": 0,
1248
+ "audioPeak": 0,
1249
+ "audioState": "none",
1250
+ "audioVolume": 0,
1251
+ "audioPath": "none",
1252
+ "decodeWorker": false,
1253
+ "bufferAhead": 11.03
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": 1215,
1268
+ "probe": null,
1269
+ "snapshot": {
1270
+ "currentTime": 1061.87,
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": 26,
1302
+ "kbps": 16510,
1303
+ "frames": 26,
1304
+ "dropped": 0,
1305
+ "audioFrames": 0,
1306
+ "audioPeak": 0,
1307
+ "audioState": "none",
1308
+ "audioVolume": 0,
1309
+ "audioPath": "mse",
1310
+ "decodeWorker": false,
1311
+ "bufferAhead": 24.68
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": 1213,
1326
+ "probe": null,
1327
+ "snapshot": {
1328
+ "currentTime": 1125.92,
1329
+ "duration": "inf",
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": 64,
1356
+ "kbps": 24137,
1357
+ "frames": 64,
1358
+ "dropped": 0,
1359
+ "audioFrames": 0,
1360
+ "audioPeak": 0,
1361
+ "audioState": "none",
1362
+ "audioVolume": 0,
1363
+ "audioPath": "none",
1364
+ "decodeWorker": false,
1365
+ "bufferAhead": 10.74
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": 1212,
1380
+ "probe": null,
1381
+ "snapshot": {
1382
+ "currentTime": 1101.68,
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": 27,
1414
+ "kbps": 44084,
1415
+ "frames": 27,
1416
+ "dropped": 0,
1417
+ "audioFrames": 2523,
1418
+ "audioPeak": 0.4921875,
1419
+ "audioState": "running",
1420
+ "audioVolume": 0,
1421
+ "audioPath": "webaudio",
1422
+ "decodeWorker": false,
1423
+ "bufferAhead": 57.64
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": 2838,
1438
+ "probe": {
1439
+ "ok": true,
1440
+ "hasBar": true,
1441
+ "shot": 778312,
1442
+ "rec": 252489,
1443
+ "rate": 1.5
1444
+ },
1445
+ "snapshot": {
1446
+ "currentTime": 1050.46,
1447
+ "duration": 5071.732,
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": 31,
1478
+ "kbps": 9024,
1479
+ "frames": 31,
1480
+ "dropped": 0,
1481
+ "audioFrames": 0,
1482
+ "audioPeak": 0,
1483
+ "audioState": "none",
1484
+ "audioVolume": 0,
1485
+ "audioPath": "mse",
1486
+ "decodeWorker": false,
1487
+ "bufferAhead": 4.16
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": 1826.01,
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": 25,
1536
+ "kbps": 3341,
1537
+ "frames": 25,
1538
+ "dropped": 0,
1539
+ "audioFrames": 0,
1540
+ "audioPeak": 0,
1541
+ "audioState": "none",
1542
+ "audioVolume": 0,
1543
+ "audioPath": "mse",
1544
+ "decodeWorker": false,
1545
+ "bufferAhead": 5.93
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: network error",
1553
+ "reconnecting 1/3"
1554
+ ]
1555
+ }
1556
+
1557
+ === error-json (auto) ===
1558
+ {
1559
+ "name": "error-json",
1560
+ "ok": true,
1561
+ "elapsedMs": 406,
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": 2014,
1614
+ "probe": null,
1615
+ "snapshot": {
1616
+ "currentTime": 1269.15,
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": 58,
1648
+ "kbps": 308219,
1649
+ "frames": 58,
1650
+ "dropped": 13,
1651
+ "audioFrames": 0,
1652
+ "audioPeak": 0,
1653
+ "audioState": "none",
1654
+ "audioVolume": 0,
1655
+ "audioPath": "mse",
1656
+ "decodeWorker": false,
1657
+ "bufferAhead": 38.74
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 (chrome): all scenarios passed