@netless/app-slide 0.2.47-alpha.1 → 0.2.47-alpha.3
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.cjs.js +3 -3
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +9 -7
- 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
|
@@ -31424,7 +31424,9 @@ void main(void){
|
|
|
31424
31424
|
}));
|
|
31425
31425
|
}
|
|
31426
31426
|
startTimeChangeEmit() {
|
|
31427
|
-
this.currentTime !== this.lastTime && (this.lastTime = this.currentTime, this.emit("timeupdate", this.lastTime)), (!this.isEnded || this.duration <= 0) && setTimeout(() =>
|
|
31427
|
+
this.currentTime !== this.lastTime && (this.lastTime = this.currentTime, this.emit("timeupdate", this.lastTime)), (!this.isEnded || this.duration <= 0) && setTimeout(() => {
|
|
31428
|
+
(!this.isEnded || this.duration <= 0) && this.startTimeChangeEmit();
|
|
31429
|
+
}, 300);
|
|
31428
31430
|
}
|
|
31429
31431
|
play() {
|
|
31430
31432
|
var t2, e2, i2;
|
|
@@ -31514,7 +31516,7 @@ void main(void){
|
|
|
31514
31516
|
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
31517
|
if (this.videoElement) {
|
|
31516
31518
|
const e3 = this.videoElement.currentTime;
|
|
31517
|
-
console.log(`[time]: video:${e3} shadow:${t3}`), Math.abs(e3 - t3) >
|
|
31519
|
+
console.log(`[time]: video:${e3} shadow:${t3}`), Math.abs(e3 - t3) > 0.5 && this.videoElement.fastSeek(t3);
|
|
31518
31520
|
}
|
|
31519
31521
|
});
|
|
31520
31522
|
const { video: l2, width: h2, height: u2, target: c2 } = t2;
|
|
@@ -31573,7 +31575,7 @@ void main(void){
|
|
|
31573
31575
|
return !!(t3 && t3.videoWidth > 0);
|
|
31574
31576
|
}, 3e3);
|
|
31575
31577
|
const t2 = this.videoElement;
|
|
31576
|
-
t2 && t2.videoWidth <= 0 || (this.videoElement && (this.videoElement.volume = 0, this.videoElement.muted = true), this.rtcAudio.
|
|
31578
|
+
t2 && t2.videoWidth <= 0 || (this.videoElement && (this.videoElement.volume = 0, this.videoElement.muted = true), this.rtcAudio.on("play", () => {
|
|
31577
31579
|
var t3;
|
|
31578
31580
|
(t3 = this.videoElement) === null || t3 === void 0 || t3.play(), this.fullscreen && this.controller.fullscreenPlay();
|
|
31579
31581
|
}), this.rtcAudio.play());
|
|
@@ -31583,7 +31585,7 @@ void main(void){
|
|
|
31583
31585
|
return this.videoResource.load();
|
|
31584
31586
|
}
|
|
31585
31587
|
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.
|
|
31588
|
+
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
31589
|
var t2;
|
|
31588
31590
|
(t2 = this.videoElement) === null || t2 === void 0 || t2.pause();
|
|
31589
31591
|
}), this.rtcAudio.pause();
|
|
@@ -35982,9 +35984,9 @@ void main(void){
|
|
|
35982
35984
|
}
|
|
35983
35985
|
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
35986
|
try {
|
|
35985
|
-
mT = "1.1.
|
|
35987
|
+
mT = "1.1.8-beta.2";
|
|
35986
35988
|
} catch (t2) {
|
|
35987
|
-
mT = "dev-";
|
|
35989
|
+
mT = "dev - ";
|
|
35988
35990
|
}
|
|
35989
35991
|
var gT = null;
|
|
35990
35992
|
try {
|
|
@@ -39104,7 +39106,7 @@ class SlidePreviewer {
|
|
|
39104
39106
|
}
|
|
39105
39107
|
}
|
|
39106
39108
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
39107
|
-
const version = "0.2.47-alpha.
|
|
39109
|
+
const version = "0.2.47-alpha.3";
|
|
39108
39110
|
const SlideApp = {
|
|
39109
39111
|
kind: "Slide",
|
|
39110
39112
|
setup(context) {
|