@besovideo/webrtc-player 0.8.69 → 0.8.70

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.
@@ -1,4 +1,4 @@
1
- /* sass-plugin-0:G:\develop\bvweb-player\node_modules\tippy.js\dist\tippy.css */
1
+ /* sass-plugin-0:G:\develop\test\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:G:\develop\bvweb-player\node_modules\tippy.js\animations\shift-away.css */
84
+ /* sass-plugin-0:G:\develop\test\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:G:\develop\bvweb-player\src\styles\contextmenu.css */
101
+ /* sass-plugin-0:G:\develop\test\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:G:\develop\bvweb-player\src\styles\main.scss */
195
+ /* sass-plugin-0:G:\develop\test\bvweb-player\src\styles\main.scss */
196
196
  .bvplayer-common-flex-space {
197
197
  display: inline-block;
198
198
  flex: 1;
@@ -117,7 +117,7 @@ var bvPlayerCore = (() => {
117
117
  var define_processenv_default;
118
118
  var init_define_processenv = __esm({
119
119
  "<define:processenv>"() {
120
- define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.69", PROJECT_NAMESPACE: "bvplayer" };
120
+ define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.70", PROJECT_NAMESPACE: "bvplayer" };
121
121
  }
122
122
  });
123
123
 
@@ -8511,7 +8511,11 @@ ${event.candidate ? event.candidate.candidate : "(null)"}`
8511
8511
  yield pc.setLocalDescription(offer);
8512
8512
  onLocalDescriptionReady && onLocalDescriptionReady(pc);
8513
8513
  let remoteSdp = "";
8514
- remoteSdp = yield productRemoteSdp(new RTCSessionDescription(offer));
8514
+ try {
8515
+ remoteSdp = yield productRemoteSdp(new RTCSessionDescription(offer));
8516
+ } catch (e) {
8517
+ throw t("da-kai-shi-bai");
8518
+ }
8515
8519
  logger_default.info("webrtc remoteSDP: ", remoteSdp);
8516
8520
  if (/a=rtpmap:\d+ H265/gi.test(remoteSdp || "")) {
8517
8521
  throw new WebrtcH265Error(
@@ -15789,17 +15793,21 @@ ${event.candidate ? event.candidate.candidate : "(null)"}`
15789
15793
  throw new Error("ws-bvrtc create offer failed.");
15790
15794
  }
15791
15795
  logger_default.info("ws-bvrtc localSDP: ", (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.sdp);
15792
- const dialog = yield dialog_default.getDeviceBvrtc(
15793
- {
15794
- id,
15795
- index,
15796
- sdp: (_b2 = res == null ? void 0 : res.data) == null ? void 0 : _b2.sdp
15797
- },
15798
- tempToken,
15799
- signal
15800
- );
15801
- logger_default.info("ws-bvrtc remoteSDP: ", dialog.sdp);
15802
- hplayer.setRemoteSDP(dialog.dialogId, dialog.sdp);
15796
+ try {
15797
+ const dialog = yield dialog_default.getDeviceBvrtc(
15798
+ {
15799
+ id,
15800
+ index,
15801
+ sdp: (_b2 = res == null ? void 0 : res.data) == null ? void 0 : _b2.sdp
15802
+ },
15803
+ tempToken,
15804
+ signal
15805
+ );
15806
+ logger_default.info("ws-bvrtc remoteSDP: ", dialog.sdp);
15807
+ hplayer.setRemoteSDP(dialog.dialogId, dialog.sdp);
15808
+ } catch (e2) {
15809
+ throw t("da-kai-shi-bai");
15810
+ }
15803
15811
  hplayer.onevent = function(bCloseEvent, iResult) {
15804
15812
  logger_default.info(
15805
15813
  "bvmedia event: bClose ",
package/dist/main.es.css CHANGED
@@ -1,4 +1,4 @@
1
- /* sass-plugin-1:G:\develop\bvweb-player\node_modules\tippy.js\dist\tippy.css */
1
+ /* sass-plugin-1:G:\develop\test\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-1:G:\develop\bvweb-player\node_modules\tippy.js\animations\shift-away.css */
84
+ /* sass-plugin-1:G:\develop\test\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-1:G:\develop\bvweb-player\src\styles\contextmenu.css */
101
+ /* sass-plugin-1:G:\develop\test\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-1:G:\develop\bvweb-player\src\styles\main.scss */
195
+ /* sass-plugin-1:G:\develop\test\bvweb-player\src\styles\main.scss */
196
196
  .bvplayer-common-flex-space {
197
197
  display: inline-block;
198
198
  flex: 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.69", PROJECT_NAMESPACE: "bvplayer" };
114
+ define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.70", PROJECT_NAMESPACE: "bvplayer" };
115
115
  }
116
116
  });
117
117
 
@@ -8497,7 +8497,11 @@ var connect = (param, onGotStream) => __async(void 0, null, function* () {
8497
8497
  yield pc.setLocalDescription(offer);
8498
8498
  onLocalDescriptionReady && onLocalDescriptionReady(pc);
8499
8499
  let remoteSdp = "";
8500
- remoteSdp = yield productRemoteSdp(new RTCSessionDescription(offer));
8500
+ try {
8501
+ remoteSdp = yield productRemoteSdp(new RTCSessionDescription(offer));
8502
+ } catch (e) {
8503
+ throw t("da-kai-shi-bai");
8504
+ }
8501
8505
  logger_default.info("webrtc remoteSDP: ", remoteSdp);
8502
8506
  if (/a=rtpmap:\d+ H265/gi.test(remoteSdp || "")) {
8503
8507
  throw new WebrtcH265Error(
@@ -15775,17 +15779,21 @@ var PuPlayer = (props) => {
15775
15779
  throw new Error("ws-bvrtc create offer failed.");
15776
15780
  }
15777
15781
  logger_default.info("ws-bvrtc localSDP: ", (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.sdp);
15778
- const dialog = yield dialog_default.getDeviceBvrtc(
15779
- {
15780
- id,
15781
- index,
15782
- sdp: (_b2 = res == null ? void 0 : res.data) == null ? void 0 : _b2.sdp
15783
- },
15784
- tempToken,
15785
- signal
15786
- );
15787
- logger_default.info("ws-bvrtc remoteSDP: ", dialog.sdp);
15788
- hplayer.setRemoteSDP(dialog.dialogId, dialog.sdp);
15782
+ try {
15783
+ const dialog = yield dialog_default.getDeviceBvrtc(
15784
+ {
15785
+ id,
15786
+ index,
15787
+ sdp: (_b2 = res == null ? void 0 : res.data) == null ? void 0 : _b2.sdp
15788
+ },
15789
+ tempToken,
15790
+ signal
15791
+ );
15792
+ logger_default.info("ws-bvrtc remoteSDP: ", dialog.sdp);
15793
+ hplayer.setRemoteSDP(dialog.dialogId, dialog.sdp);
15794
+ } catch (e2) {
15795
+ throw t("da-kai-shi-bai");
15796
+ }
15789
15797
  hplayer.onevent = function(bCloseEvent, iResult) {
15790
15798
  logger_default.info(
15791
15799
  "bvmedia event: bClose ",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@besovideo/webrtc-player",
3
- "version": "0.8.69",
3
+ "version": "0.8.70",
4
4
  "description": "@besovideo/webrtc-player desc",
5
5
  "type": "module",
6
6
  "types": "./dist/types/main.d.ts",