@netless/app-slide 0.2.75-beta.0 → 0.2.76
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/LICENSE +21 -0
- package/dist/main.cjs.js +3 -3
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +5 -5
- 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 +9 -9
package/dist/main.es.js
CHANGED
|
@@ -31510,7 +31510,7 @@ void main(void){
|
|
|
31510
31510
|
class d_ extends Za.a {
|
|
31511
31511
|
constructor(t2, e2, i2, n2) {
|
|
31512
31512
|
var r2, o2;
|
|
31513
|
-
super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.domAudio = null, this.pcmSource = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.staticEventId = 1001, this._catParams = void 0, this.url = t2, this.runningAudio = e2, i2 && (this._catParams = i2), Yy.RtcAudioClazz ? (this.rctClient = new Yy.RtcAudioClazz(t2, null === (r2 = this._catParams) || void 0 === r2 ? void 0 : r2.start, null === (o2 = this._catParams) || void 0 === o2 ? void 0 : o2.end), this.rctClient.on("load", () => this.emit("load")), this.rctClient.on("pause", () => this.emit("pause")), this.rctClient.on("play", () => {
|
|
31513
|
+
super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.domAudio = null, this.pcmSource = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.staticEventId = 1001, this._catParams = void 0, this.isDomAudioPlayed = false, this.domAudioRemainSeek = [], this.url = t2, this.runningAudio = e2, i2 && (this._catParams = i2), Yy.RtcAudioClazz ? (this.rctClient = new Yy.RtcAudioClazz(t2, null === (r2 = this._catParams) || void 0 === r2 ? void 0 : r2.start, null === (o2 = this._catParams) || void 0 === o2 ? void 0 : o2.end), this.rctClient.on("load", () => this.emit("load")), this.rctClient.on("pause", () => this.emit("pause")), this.rctClient.on("play", () => {
|
|
31514
31514
|
this.startTimeChangeEmit(), this.emit("play");
|
|
31515
31515
|
}), this.rctClient.on("resumeAllAudioInterruptByAudioSessionChanged", () => {
|
|
31516
31516
|
this.emit("resumeAllAudioInterruptByAudioSessionChanged");
|
|
@@ -31519,7 +31519,7 @@ void main(void){
|
|
|
31519
31519
|
}), this.pcmSource = window.__pcmProxy.connect(this.domAudio), this.domAudio.addEventListener("loadedmetadata", () => {
|
|
31520
31520
|
this.emit("load");
|
|
31521
31521
|
}), this.domAudio.addEventListener("playing", () => {
|
|
31522
|
-
this.startTimeChangeEmit(), this.emit("play");
|
|
31522
|
+
this.isDomAudioPlayed = true, this.domAudioRemainSeek.length > 0 && this.domAudio && (this.domAudio.currentTime = this.domAudioRemainSeek[this.domAudioRemainSeek.length - 1]), this.startTimeChangeEmit(), this.emit("play");
|
|
31523
31523
|
})) : (this.howl = new c_.Howl({ src: [t2], html5: null == n2 ? void 0 : n2.enableWebAudio }), [this.staticEventId] = this.howl._getSoundIds(), this.howl.load(), this.howl.on("load", () => {
|
|
31524
31524
|
this.isHowlLoadEmit = true, this.emit("load");
|
|
31525
31525
|
}), this.howl.on("pause", () => this.emit("pause")), this.howl.on("play", () => {
|
|
@@ -31562,7 +31562,7 @@ void main(void){
|
|
|
31562
31562
|
return this.rctClient ? this.rctClient.currentTime : this.howl ? this.howl.seek(this.staticEventId) : this.domAudio ? this.domAudio.currentTime : -1;
|
|
31563
31563
|
}
|
|
31564
31564
|
set currentTime(t2) {
|
|
31565
|
-
this.rctClient ? this.rctClient.currentTime = t2 : this.howl ? this.howl.seek(t2, this.staticEventId) : this.domAudio && (this.domAudio.currentTime = t2);
|
|
31565
|
+
this.rctClient ? this.rctClient.currentTime = t2 : this.howl ? this.howl.seek(t2, this.staticEventId) : this.domAudio && (this.isDomAudioPlayed ? this.domAudio.currentTime = t2 : this.domAudioRemainSeek.push(t2));
|
|
31566
31566
|
}
|
|
31567
31567
|
get duration() {
|
|
31568
31568
|
return this.rctClient ? this.rctClient.duration : this.howl ? this.howl.duration(this.staticEventId) : this.domAudio ? this.domAudio.duration : 0;
|
|
@@ -36242,7 +36242,7 @@ void main(void){
|
|
|
36242
36242
|
}
|
|
36243
36243
|
var vT = { 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", useraddLink: "useraddLink" }, _T = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, yT = "";
|
|
36244
36244
|
try {
|
|
36245
|
-
yT = "1.4.
|
|
36245
|
+
yT = "1.4.35";
|
|
36246
36246
|
} catch (t2) {
|
|
36247
36247
|
yT = "-dev-";
|
|
36248
36248
|
}
|
|
@@ -39532,7 +39532,7 @@ class SlidePreviewer {
|
|
|
39532
39532
|
}
|
|
39533
39533
|
}
|
|
39534
39534
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
39535
|
-
const version = "0.2.
|
|
39535
|
+
const version = "0.2.76";
|
|
39536
39536
|
const SlideApp = {
|
|
39537
39537
|
kind: "Slide",
|
|
39538
39538
|
setup(context) {
|