@besovideo/webrtc-player 0.8.57 → 0.8.59
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 +7 -0
- package/dist/main.browser.css +28 -4
- package/dist/main.browser.js +429 -216
- package/dist/main.es.css +28 -4
- package/dist/main.es.js +430 -217
- package/dist/types/api/dialog.d.ts +2 -2
- package/dist/types/components/puPlayer.d.ts +4 -0
- package/dist/types/components/subComponent/mikeButton.d.ts +4 -0
- package/dist/types/plugins/controller/index.d.ts +4 -0
- package/dist/types/plugins/player/index.d.ts +4 -3
- package/dist/types/plugins/toast.d.ts +13 -0
- package/dist/types/utils/http.d.ts +1 -1
- package/dist/types/utils/logger.d.ts +12 -0
- package/package.json +1 -1
- package/dist/types/plugins/player/reducers/types.d.ts +0 -57
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
|
package/dist/main.browser.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* sass-plugin-0:
|
|
1
|
+
/* sass-plugin-0:E:\codeGit\bvweb-player\node_modules\tippy.js\dist\tippy.css */
|
|
2
2
|
.tippy-box[data-animation=fade][data-state=hidden] {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
}
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
z-index: 1;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
/* sass-plugin-0:
|
|
84
|
+
/* sass-plugin-0:E:\codeGit\bvweb-player\node_modules\tippy.js\animations\shift-away.css */
|
|
85
85
|
.tippy-box[data-animation=shift-away][data-state=hidden] {
|
|
86
86
|
opacity: 0;
|
|
87
87
|
}
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
transform: translateX(-10px);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
/* sass-plugin-0:
|
|
101
|
+
/* sass-plugin-0:E:\codeGit\bvweb-player\src\styles\contextmenu.css */
|
|
102
102
|
.cm_container {
|
|
103
103
|
position: absolute;
|
|
104
104
|
opacity: 0;
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
background-color: inherit;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
/* sass-plugin-0:
|
|
195
|
+
/* sass-plugin-0:E:\codeGit\bvweb-player\src\styles\main.scss */
|
|
196
196
|
.bvplayer-common-flex-space {
|
|
197
197
|
display: inline-block;
|
|
198
198
|
flex: 1;
|
|
@@ -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;
|