@besovideo/webrtc-player 0.8.78 → 0.8.79
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/dist/main.es.js +4 -2
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -111,7 +111,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
111
111
|
var define_processenv_default;
|
|
112
112
|
var init_define_processenv = __esm({
|
|
113
113
|
"<define:processenv>"() {
|
|
114
|
-
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.
|
|
114
|
+
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.79", PROJECT_NAMESPACE: "bvplayer" };
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
|
|
@@ -16544,7 +16544,6 @@ var PuPlayer = (props) => {
|
|
|
16544
16544
|
player.mask.text = t("lost-connection");
|
|
16545
16545
|
player.close();
|
|
16546
16546
|
onDisConnected && onDisConnected();
|
|
16547
|
-
useRecntMgr == null ? void 0 : useRecntMgr.reconnect();
|
|
16548
16547
|
},
|
|
16549
16548
|
onConnected: (_pc) => {
|
|
16550
16549
|
onConnected && onConnected();
|
|
@@ -16676,6 +16675,8 @@ var PuPlayer = (props) => {
|
|
|
16676
16675
|
logger_default.debug("error\u7684\u7C7B\u578B", e.name, e instanceof OpenDialogError);
|
|
16677
16676
|
if (e instanceof OpenDialogError)
|
|
16678
16677
|
throw e;
|
|
16678
|
+
player.mask.visible = true;
|
|
16679
|
+
player.mask.text = t("connecting") + "...";
|
|
16679
16680
|
const captureStream = () => hplayer == null ? void 0 : hplayer.captureStream();
|
|
16680
16681
|
player.enableCanvas(true, captureStream);
|
|
16681
16682
|
this.protocol = "ws-bvrtc";
|
|
@@ -16794,6 +16795,7 @@ var PuPlayer = (props) => {
|
|
|
16794
16795
|
});
|
|
16795
16796
|
});
|
|
16796
16797
|
player.addEventListener("close", closeHandle);
|
|
16798
|
+
player.mask.visible = false;
|
|
16797
16799
|
onConnected && onConnected();
|
|
16798
16800
|
reconnectMgr == null ? void 0 : reconnectMgr.cancelReconnect();
|
|
16799
16801
|
dialog_default.closeDialogs([dialogId || ""], tempToken || "");
|