@netless/app-slide 0.2.53-alpha.2 → 0.2.53-alpha.4
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 +57 -57
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +8 -14
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +57 -57
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -31258,7 +31258,7 @@ void main(void){
|
|
|
31258
31258
|
t3.stopPropagation(), this.hide();
|
|
31259
31259
|
}, this.mediaTimeUpdate = () => o_(this, void 0, void 0, function* () {
|
|
31260
31260
|
const t3 = this.media.currentTime - this.start;
|
|
31261
|
-
if (this.duration > 0 && (Math.abs(t3 - this.duration) < 0.3 || t3 > this.duration) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(zy.mediaStop, { id: this.targetId }), this.onClickCancelFullScreenButtonHandle()), this.currentTime.innerText = l_.formatTime(t3), this.currentProgress.style.flex = (t3 / this.duration).toString(), this.bookmarkList && this.bookmarkList.length > 0) {
|
|
31261
|
+
if (console.log("duration", this.duration, "current", t3), this.duration > 0 && (Math.abs(t3 - this.duration) < 0.3 || t3 > this.duration) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(zy.mediaStop, { id: this.targetId }), this.onClickCancelFullScreenButtonHandle()), this.currentTime.innerText = l_.formatTime(t3), this.currentProgress.style.flex = (t3 / this.duration).toString(), this.bookmarkList && this.bookmarkList.length > 0) {
|
|
31262
31262
|
const t4 = this.bookmarkList[this.pickBookmarkIndex];
|
|
31263
31263
|
t4 && t4.time.toFixed(0) === this.media.currentTime.toFixed(0) && (this.ctx.timingEventHub.emit(`shape ${this.shapeId} onMediaBookmark ${t4.name}`), this.pickBookmarkIndex += 1);
|
|
31264
31264
|
}
|
|
@@ -31612,14 +31612,10 @@ void main(void){
|
|
|
31612
31612
|
return this.videoResource.load();
|
|
31613
31613
|
}
|
|
31614
31614
|
pause() {
|
|
31615
|
-
|
|
31616
|
-
|
|
31617
|
-
|
|
31618
|
-
|
|
31619
|
-
(e2 = this.videoElement) === null || e2 === void 0 || e2.pause(), t2();
|
|
31620
|
-
}), this.rtcAudio.pause();
|
|
31621
|
-
});
|
|
31622
|
-
});
|
|
31615
|
+
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", () => {
|
|
31616
|
+
var t2;
|
|
31617
|
+
(t2 = this.videoElement) === null || t2 === void 0 || t2.pause();
|
|
31618
|
+
}), this.rtcAudio.pause();
|
|
31623
31619
|
}
|
|
31624
31620
|
globalPause() {
|
|
31625
31621
|
this.isPlaying && (this.isGlobalPause = true, this.pause());
|
|
@@ -31726,9 +31722,7 @@ void main(void){
|
|
|
31726
31722
|
});
|
|
31727
31723
|
}
|
|
31728
31724
|
pause() {
|
|
31729
|
-
|
|
31730
|
-
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Audio player prevent pause event with paused state", this.ctx.taskId) : (this.isPlaying = false, this.audioPlayer.pause());
|
|
31731
|
-
});
|
|
31725
|
+
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Audio player prevent pause event with paused state", this.ctx.taskId) : (this.isPlaying = false, this.audioPlayer.pause());
|
|
31732
31726
|
}
|
|
31733
31727
|
globalPause() {
|
|
31734
31728
|
this.isPlaying && (this.isGlobalPause = true, this.pause());
|
|
@@ -36014,7 +36008,7 @@ void main(void){
|
|
|
36014
36008
|
}
|
|
36015
36009
|
var fT = { 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" }, mT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, gT = "";
|
|
36016
36010
|
try {
|
|
36017
|
-
gT = "1.2.2-alpha.
|
|
36011
|
+
gT = "1.2.2-alpha.5";
|
|
36018
36012
|
} catch (t2) {
|
|
36019
36013
|
gT = "dev -";
|
|
36020
36014
|
}
|
|
@@ -39167,7 +39161,7 @@ class SlidePreviewer {
|
|
|
39167
39161
|
}
|
|
39168
39162
|
}
|
|
39169
39163
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
39170
|
-
const version = "0.2.53-alpha.
|
|
39164
|
+
const version = "0.2.53-alpha.4";
|
|
39171
39165
|
const SlideApp = {
|
|
39172
39166
|
kind: "Slide",
|
|
39173
39167
|
setup(context) {
|