@besovideo/webrtc-player 0.8.76 → 0.8.77

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.
Files changed (2) hide show
  1. package/dist/main.es.js +8 -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.76", PROJECT_NAMESPACE: "bvplayer" };
114
+ define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.77", PROJECT_NAMESPACE: "bvplayer" };
115
115
  }
116
116
  });
117
117
 
@@ -16722,6 +16722,9 @@ var PlaybackBar = class extends Plugin {
16722
16722
  if (this.controls.currentTime == this.playbackInfo.current) {
16723
16723
  return;
16724
16724
  }
16725
+ if (this.playbackInfo.current > this.playbackInfo.total) {
16726
+ this.playbackInfo.current = this.playbackInfo.total;
16727
+ }
16725
16728
  this.controls.currentTime = this.playbackInfo.current;
16726
16729
  const iTotal = this.playbackInfo.total;
16727
16730
  const iCurrent = this.playbackInfo.current > iTotal ? iTotal : this.playbackInfo.current;
@@ -17192,7 +17195,7 @@ var PlayBack = (props) => {
17192
17195
  i18n_default(locale);
17193
17196
  let hplayer = void 0;
17194
17197
  const handle2 = {};
17195
- let type = (puOption == null ? void 0 : puOption.puId) && type1 == "ws-bvrtc" ? "web" : type1;
17198
+ let type = (puOption == null ? void 0 : puOption.puId) && type1 == "ws-bvrtc" ? type1 : type1;
17196
17199
  const instance2 = {
17197
17200
  videoFit: "contain",
17198
17201
  open() {
@@ -17305,6 +17308,7 @@ var PlayBack = (props) => {
17305
17308
  }
17306
17309
  };
17307
17310
  handle2.close = () => {
17311
+ videoEle.src = "";
17308
17312
  markerHandle.destroy();
17309
17313
  player.close();
17310
17314
  barHandle.destroy();
@@ -17385,7 +17389,7 @@ var PlayBack = (props) => {
17385
17389
  jumpHandle = (data) => __async(this, null, function* () {
17386
17390
  if (data && playbackInfo.data) {
17387
17391
  yield hplayer == null ? void 0 : hplayer.playbackStop();
17388
- const seekInfo = yield playbackController.seek({ range: [data == null ? void 0 : data.targetSeconds, playbackInfo.data.range[1]] });
17392
+ yield playbackController.seek({ range: [Number(data == null ? void 0 : data.targetSeconds.toFixed(4)), playbackInfo.data.range[1]] });
17389
17393
  yield hplayer == null ? void 0 : hplayer.playbackStart();
17390
17394
  barHandle.pausePlayStateChange("play");
17391
17395
  }
@@ -17477,7 +17481,7 @@ var PlayBack = (props) => {
17477
17481
  },
17478
17482
  setProtocol: function(protocol) {
17479
17483
  this.close();
17480
- this.protocol = (puOption == null ? void 0 : puOption.puId) ? "web" : protocol;
17484
+ this.protocol = (puOption == null ? void 0 : puOption.puId) ? protocol : protocol;
17481
17485
  this.open();
17482
17486
  },
17483
17487
  protocol: "web"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@besovideo/webrtc-player",
3
- "version": "0.8.76",
3
+ "version": "0.8.77",
4
4
  "description": "@besovideo/webrtc-player desc",
5
5
  "type": "module",
6
6
  "types": "./dist/types/main.d.ts",