itube-modern-player 0.2.0 → 0.2.1

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/core.js CHANGED
@@ -1572,9 +1572,9 @@ class _t {
1572
1572
  bindVideoEvents() {
1573
1573
  const { signal: t } = this.abort, e = this.video;
1574
1574
  e.addEventListener("play", () => {
1575
- this.playedOnce = !0, this.poster.hide(), this.pauseScreen.hide(), this.related.visible || this.related.hide(), this.related.hide(), this.emitter.emit("play", void 0), this.scheduleIdle();
1575
+ this.playedOnce = !0, this.poster.hide(), this.pauseScreen.hide(), this.related.visible || this.related.hide(), this.related.hide(), e.readyState < 3 && (this.spinner.hidden = !1), this.emitter.emit("play", void 0), this.scheduleIdle();
1576
1576
  }, { signal: t }), e.addEventListener("pause", () => {
1577
- this.emitter.emit("pause", void 0), this.showControlsNow(), !(this.video.ended || this.scrubbing || this.adPlaying || !this.playedOnce) && (this.options.pauseScreen !== !1 && this.pauseScreen.show(), this.options.related?.showOn?.includes("pause") && this.related.show());
1577
+ this.spinner.hidden = !0, this.emitter.emit("pause", void 0), this.showControlsNow(), !(this.video.ended || this.scrubbing || this.adPlaying || !this.playedOnce) && (this.options.pauseScreen !== !1 && this.pauseScreen.show(), this.options.related?.showOn?.includes("pause") && this.related.show());
1578
1578
  }, { signal: t }), e.addEventListener("ended", () => {
1579
1579
  this.handleEnded();
1580
1580
  }, { signal: t }), e.addEventListener("timeupdate", () => {