@netless/app-slide 0.2.47-alpha.1 → 0.2.47-alpha.2

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 CHANGED
@@ -31514,7 +31514,7 @@ void main(void){
31514
31514
  this.ctx.loaderDelegate && (a2 = this.ctx.loaderDelegate.redirectMedia(a2), this.ctx.logger.info(`redirect media url from ${t2.video.src.replace(/4$/, "3")} to ${a2} by delegate.`, t2.ctx.taskId)), this.rtcAudio = new h_(a2, t2.ctx.runningAudio), this.rtcAudio.on("timeupdate", (t3) => {
31515
31515
  if (this.videoElement) {
31516
31516
  const e3 = this.videoElement.currentTime;
31517
- console.log(`[time]: video:${e3} shadow:${t3}`), Math.abs(e3 - t3) > 500 && this.videoElement.fastSeek(t3);
31517
+ console.log(`[time]: video:${e3} shadow:${t3}`), Math.abs(e3 - t3) > 0.5 && this.videoElement.fastSeek(t3);
31518
31518
  }
31519
31519
  });
31520
31520
  const { video: l2, width: h2, height: u2, target: c2 } = t2;
@@ -31573,7 +31573,7 @@ void main(void){
31573
31573
  return !!(t3 && t3.videoWidth > 0);
31574
31574
  }, 3e3);
31575
31575
  const t2 = this.videoElement;
31576
- t2 && t2.videoWidth <= 0 || (this.videoElement && (this.videoElement.volume = 0, this.videoElement.muted = true), this.rtcAudio.once("play", () => {
31576
+ t2 && t2.videoWidth <= 0 || (this.videoElement && (this.videoElement.volume = 0, this.videoElement.muted = true), this.rtcAudio.on("play", () => {
31577
31577
  var t3;
31578
31578
  (t3 = this.videoElement) === null || t3 === void 0 || t3.play(), this.fullscreen && this.controller.fullscreenPlay();
31579
31579
  }), this.rtcAudio.play());
@@ -31583,7 +31583,7 @@ void main(void){
31583
31583
  return this.videoResource.load();
31584
31584
  }
31585
31585
  pause() {
31586
- this.isPlaying = false, this.ctx.logger.warn(this.url + ", pause video manual.", this.ctx.taskId), this.ctx.logger.warn(this.url + ", pause rtc audio manual.", this.ctx.taskId), this.rtcAudio.once("pause", () => {
31586
+ this.isPlaying = false, this.ctx.logger.warn(this.url + ", pause video manual.", this.ctx.taskId), this.ctx.logger.warn(this.url + ", pause rtc audio manual.", this.ctx.taskId), this.rtcAudio.on("pause", () => {
31587
31587
  var t2;
31588
31588
  (t2 = this.videoElement) === null || t2 === void 0 || t2.pause();
31589
31589
  }), this.rtcAudio.pause();
@@ -35982,9 +35982,9 @@ void main(void){
35982
35982
  }
35983
35983
  var pT = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart" }, fT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, mT = "";
35984
35984
  try {
35985
- mT = "1.1.7";
35985
+ mT = "1.1.8-beta.1";
35986
35986
  } catch (t2) {
35987
- mT = "dev-";
35987
+ mT = "dev";
35988
35988
  }
35989
35989
  var gT = null;
35990
35990
  try {
@@ -39104,7 +39104,7 @@ class SlidePreviewer {
39104
39104
  }
39105
39105
  }
39106
39106
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
39107
- const version = "0.2.47-alpha.1";
39107
+ const version = "0.2.47-alpha.2";
39108
39108
  const SlideApp = {
39109
39109
  kind: "Slide",
39110
39110
  setup(context) {