@beyondwords/player 0.0.0-beta30 → 0.0.0-beta31
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/es.js +8 -4
- package/dist/es.js.map +1 -1
- package/dist/umd.js +2 -2
- package/dist/umd.js.map +1 -1
- package/package.json +1 -1
package/dist/es.js
CHANGED
|
@@ -550,7 +550,7 @@ class rt {
|
|
|
550
550
|
this.$$set && !D0(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
const iv = "@beyondwords/player", iu = "0.0.0-
|
|
553
|
+
const iv = "@beyondwords/player", iu = "0.0.0-beta31", tr = (t, e) => {
|
|
554
554
|
t = [t].flat().join(`
|
|
555
555
|
`);
|
|
556
556
|
let i = `${iv}:
|
|
@@ -27061,8 +27061,6 @@ class u3 {
|
|
|
27061
27061
|
handleCurrentTimeUpdated() {
|
|
27062
27062
|
!this.midrollPlayed && ce(this, tn, In).call(this);
|
|
27063
27063
|
}
|
|
27064
|
-
handlePlaybackPaused() {
|
|
27065
|
-
}
|
|
27066
27064
|
handlePlaybackRateUpdated() {
|
|
27067
27065
|
}
|
|
27068
27066
|
handleVisibilityChanged() {
|
|
@@ -27128,7 +27126,13 @@ class u3 {
|
|
|
27128
27126
|
this.player.playbackState = "paused";
|
|
27129
27127
|
}
|
|
27130
27128
|
handlePlaybackPlaying() {
|
|
27131
|
-
this.PlayerClass.instances().filter((r) => r !== this.player).filter((r) => r.playbackState === "playing").forEach((r) => r.playbackState = "paused"), r3(this.PlayerClass);
|
|
27129
|
+
this.player.playbackState = "playing", this.PlayerClass.instances().filter((r) => r !== this.player).filter((r) => r.playbackState === "playing").forEach((r) => r.playbackState = "paused"), r3(this.PlayerClass);
|
|
27130
|
+
}
|
|
27131
|
+
handlePlaybackPaused() {
|
|
27132
|
+
if (this.player.playbackState !== "playing")
|
|
27133
|
+
return;
|
|
27134
|
+
const e = this.player.contentIndex === 0 && this.player.currentTime === 0;
|
|
27135
|
+
this.player.playbackState = e ? "stopped" : "paused";
|
|
27132
27136
|
}
|
|
27133
27137
|
handlePlaybackEnded() {
|
|
27134
27138
|
ce(this, Lo, Nf).call(this) && (this.midrollPlayed = !0), this.segmentPlayed = !1;
|