@besovideo/webrtc-player 0.8.56 → 0.8.58

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
@@ -83,6 +83,13 @@ const { instance } = PuPlayer({
83
83
  noVideoRendeAudioWaveform: false,
84
84
  // (可选) 设置语言支持中文zh、英文en,默认中文
85
85
  locale: "zh",
86
+ // (可选) bvrtc配置
87
+ bvrtcConfig: {
88
+ // (可选) 是否启用webcodecs解码,默认启用
89
+ enableWebcodes: boolean,
90
+ // (可选) 设置解码实时性 范围 0-10, 0 -- 流畅性最大, 10 -- 实时性最大
91
+ realTimeLevel: number
92
+ }
86
93
  });
87
94
 
88
95
  // setVideoFit 更改videoFit
@@ -415,6 +415,30 @@
415
415
  opacity: 0.8;
416
416
  font-size: 12px;
417
417
  }
418
+ .bvplayer-toast {
419
+ position: absolute;
420
+ top: 0;
421
+ left: 0;
422
+ height: 100%;
423
+ width: 100%;
424
+ }
425
+ .bvplayer-toast > span {
426
+ display: inline-block;
427
+ position: absolute;
428
+ left: calc(50% - 100px);
429
+ bottom: 72px;
430
+ margin: -18px 0 0 0px;
431
+ height: 32px;
432
+ width: 200px;
433
+ line-height: 32px;
434
+ -webkit-mask-repeat: no-repeat;
435
+ mask-repeat: no-repeat;
436
+ -webkit-mask-position: center;
437
+ mask-position: center;
438
+ text-align: center;
439
+ border-radius: 5px;
440
+ font-size: 14px;
441
+ }
418
442
  .bvplayer-video {
419
443
  display: block;
420
444
  box-sizing: border-box;