@netless/app-slide 0.2.52 → 0.2.53-alpha.0
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 +12 -6
- 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
|
@@ -31612,10 +31612,14 @@ void main(void){
|
|
|
31612
31612
|
return this.videoResource.load();
|
|
31613
31613
|
}
|
|
31614
31614
|
pause() {
|
|
31615
|
-
|
|
31616
|
-
|
|
31617
|
-
|
|
31618
|
-
|
|
31615
|
+
return c_(this, void 0, void 0, function* () {
|
|
31616
|
+
return new Promise((t2) => {
|
|
31617
|
+
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", () => {
|
|
31618
|
+
var e2;
|
|
31619
|
+
(e2 = this.videoElement) === null || e2 === void 0 || e2.pause(), t2();
|
|
31620
|
+
}), this.rtcAudio.pause();
|
|
31621
|
+
});
|
|
31622
|
+
});
|
|
31619
31623
|
}
|
|
31620
31624
|
globalPause() {
|
|
31621
31625
|
this.isPlaying && (this.isGlobalPause = true, this.pause());
|
|
@@ -31722,7 +31726,9 @@ void main(void){
|
|
|
31722
31726
|
});
|
|
31723
31727
|
}
|
|
31724
31728
|
pause() {
|
|
31725
|
-
|
|
31729
|
+
return p_(this, void 0, void 0, function* () {
|
|
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
|
+
});
|
|
31726
31732
|
}
|
|
31727
31733
|
globalPause() {
|
|
31728
31734
|
this.isPlaying && (this.isGlobalPause = true, this.pause());
|
|
@@ -39161,7 +39167,7 @@ class SlidePreviewer {
|
|
|
39161
39167
|
}
|
|
39162
39168
|
}
|
|
39163
39169
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
39164
|
-
const version = "0.2.
|
|
39170
|
+
const version = "0.2.53-alpha.0";
|
|
39165
39171
|
const SlideApp = {
|
|
39166
39172
|
kind: "Slide",
|
|
39167
39173
|
setup(context) {
|