@netless/app-slide 0.2.47-alpha.6 → 0.2.47
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/index.d.ts +1 -1
- package/dist/main.cjs.js +3 -3
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +6 -6
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +3 -3
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -31507,9 +31507,9 @@ void main(void){
|
|
|
31507
31507
|
this.videoResource = new Vh.w(l2, { autoLoad: true, autoPlay: false, updateFPS: 30, crossorigin: true }), (r2 = this.videoElement) === null || r2 === void 0 || r2.addEventListener("stalled", this.onVideoStalled), (o2 = this.videoElement) === null || o2 === void 0 || o2.addEventListener("loadedmetadata", this.onVideoResourceLoaded), this.url = t2.video.src;
|
|
31508
31508
|
let h2 = t2.video.src.replace(/4$/, "3");
|
|
31509
31509
|
this.ctx.loaderDelegate && (h2 = this.ctx.loaderDelegate.redirectMedia(h2), this.ctx.logger.info(`redirect media url from ${t2.video.src.replace(/4$/, "3")} to ${h2} by delegate.`, t2.ctx.taskId)), this.rtcAudio = new h_(h2, t2.ctx.runningAudio, { start: (s2 = t2.video.cut) === null || s2 === void 0 ? void 0 : s2.start, end: (a2 = t2.video.cut) === null || a2 === void 0 ? void 0 : a2.end }), this.rtcAudio.on("timeupdate", (t3) => {
|
|
31510
|
-
if (this.videoElement) {
|
|
31510
|
+
if (console.log(t3), this.videoElement) {
|
|
31511
31511
|
const e3 = this.videoElement.currentTime;
|
|
31512
|
-
Math.abs(e3 - t3) > 0.5 && this.videoElement.
|
|
31512
|
+
Math.abs(e3 - t3) > 0.5 && (this.videoElement.currentTime = t3);
|
|
31513
31513
|
}
|
|
31514
31514
|
}), this.rtcAudio.on("resumeAllAudioInterruptByAudioSessionChanged", () => {
|
|
31515
31515
|
var t3;
|
|
@@ -31598,7 +31598,7 @@ void main(void){
|
|
|
31598
31598
|
this.controller.jumpToTime(t2);
|
|
31599
31599
|
}
|
|
31600
31600
|
stop() {
|
|
31601
|
-
this.seek(0), this.pause(), this.ctx.eventHub.emit(jy.mediaStop, { id: this.id });
|
|
31601
|
+
this.rtcAudio.stop(), this.seek(0), this.pause(), this.ctx.eventHub.emit(jy.mediaStop, { id: this.id });
|
|
31602
31602
|
}
|
|
31603
31603
|
requestFullscreen() {
|
|
31604
31604
|
return u_(this, void 0, void 0, function* () {
|
|
@@ -31705,7 +31705,7 @@ void main(void){
|
|
|
31705
31705
|
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Audio player prevent seek event with paused state", this.ctx.taskId) : this.controller.jumpToTime(t2);
|
|
31706
31706
|
}
|
|
31707
31707
|
stop() {
|
|
31708
|
-
this.seek(0), this.pause(), this.ctx.eventHub.emit(jy.mediaStop, { id: this.id });
|
|
31708
|
+
this.audioPlayer.stop(), this.seek(0), this.pause(), this.ctx.eventHub.emit(jy.mediaStop, { id: this.id });
|
|
31709
31709
|
}
|
|
31710
31710
|
requestFullscreen() {
|
|
31711
31711
|
}
|
|
@@ -35976,7 +35976,7 @@ void main(void){
|
|
|
35976
35976
|
}
|
|
35977
35977
|
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 = "";
|
|
35978
35978
|
try {
|
|
35979
|
-
mT = "1.1.9-beta.
|
|
35979
|
+
mT = "1.1.9-beta.7";
|
|
35980
35980
|
} catch (t2) {
|
|
35981
35981
|
mT = "dev -";
|
|
35982
35982
|
}
|
|
@@ -39098,7 +39098,7 @@ class SlidePreviewer {
|
|
|
39098
39098
|
}
|
|
39099
39099
|
}
|
|
39100
39100
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
39101
|
-
const version = "0.2.47
|
|
39101
|
+
const version = "0.2.47";
|
|
39102
39102
|
const SlideApp = {
|
|
39103
39103
|
kind: "Slide",
|
|
39104
39104
|
setup(context) {
|