@besovideo/webrtc-player 0.8.96 → 0.8.98
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 +18 -4
- package/dist/main.browser.css +16 -0
- package/dist/main.browser.js +33 -15
- package/dist/main.es.css +16 -0
- package/dist/main.es.js +33 -15
- package/dist/types/components/subComponent/playState.d.ts +3 -0
- package/dist/types/plugins/player/event.d.ts +4 -1
- package/dist/types/plugins/video.d.ts +2 -1
- package/dist/types/utils/media.d.ts +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ const { instance } = PuPlayer({
|
|
|
62
62
|
// (可选) 指定video如何适应容器 (fill: 填充容器 ; contain :保持视频比例适应容器)
|
|
63
63
|
videoFit: "fill",
|
|
64
64
|
// (可选) 指定请求url路径前缀 可使用protocol+host 如:http://192.168.88.11:9780
|
|
65
|
-
|
|
65
|
+
apiPrefix: "/test_api/prefix",
|
|
66
66
|
|
|
67
67
|
// (可选) 用于测试播放视频 (存在时优先使用url播放,为浏览器直接播放)
|
|
68
68
|
// testUrl: "https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4",
|
|
@@ -254,9 +254,23 @@ instance.playerStatus : {
|
|
|
254
254
|
exec(): void;
|
|
255
255
|
// 添加事件监听,获取截图结果,
|
|
256
256
|
// cancelAutoDownload 函数,调用会取消掉下载图片
|
|
257
|
-
addEventListener(handle: ((
|
|
257
|
+
addEventListener(handle: ((
|
|
258
|
+
status: {
|
|
259
|
+
img?: Blob,
|
|
260
|
+
fileName?: string,
|
|
261
|
+
cancelAutoDownload?: ()=>{
|
|
262
|
+
download(fileName?: string): void //下载图片
|
|
263
|
+
}
|
|
264
|
+
})) => void)):void;
|
|
258
265
|
// 移除事件监听
|
|
259
|
-
removeEventListener(handle: ((
|
|
266
|
+
removeEventListener(handle: ((
|
|
267
|
+
status: {
|
|
268
|
+
img?: Blob,
|
|
269
|
+
fileName?: string,
|
|
270
|
+
cancelAutoDownload?: ()=>{
|
|
271
|
+
download(fileName?: string): void //下载图片
|
|
272
|
+
}
|
|
273
|
+
})) => void)):void;
|
|
260
274
|
},
|
|
261
275
|
informationGet: () => Promise<{
|
|
262
276
|
//音频统计信息
|
|
@@ -361,7 +375,7 @@ const { instance } = Intercom({
|
|
|
361
375
|
//(可选) 无法获取用户麦克风时
|
|
362
376
|
onGetUserMediaFailed: () => {},
|
|
363
377
|
// (可选) 指定请求url的前缀 方便代理请求
|
|
364
|
-
|
|
378
|
+
apiPrefix: "/test_api/prefix",
|
|
365
379
|
});
|
|
366
380
|
|
|
367
381
|
// open 异步 先关闭再开始建立连接 (可选参数: protocol = type 选择协议(type = "auto" | "webrtc" | "ws-bvrtc") 不填默认为auto)
|
package/dist/main.browser.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
1
3
|
/* sass-plugin-1:G:\develop\bvweb-player\node_modules\.pnpm\tippy.js@6.3.7\node_modules\tippy.js\dist\tippy.css */
|
|
2
4
|
.tippy-box[data-animation=fade][data-state=hidden] {
|
|
3
5
|
opacity: 0;
|
|
@@ -455,6 +457,20 @@
|
|
|
455
457
|
width: 100px;
|
|
456
458
|
border-radius: 5px;
|
|
457
459
|
}
|
|
460
|
+
.bvplayer-recordState .blinking-element {
|
|
461
|
+
animation: blink 2s infinite;
|
|
462
|
+
}
|
|
463
|
+
@keyframes blink {
|
|
464
|
+
0% {
|
|
465
|
+
opacity: 1;
|
|
466
|
+
}
|
|
467
|
+
50% {
|
|
468
|
+
opacity: 0.1;
|
|
469
|
+
}
|
|
470
|
+
100% {
|
|
471
|
+
opacity: 1;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
458
474
|
.bvplayer-video {
|
|
459
475
|
display: block;
|
|
460
476
|
box-sizing: border-box;
|