@byomakase/omakase-player 0.3.2 → 0.3.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.
@@ -16543,7 +16543,7 @@ class Qm {
16543
16543
  video: this.video
16544
16544
  });
16545
16545
  let n = Number.parseFloat(this.getDuration().toFixed(3));
16546
- return Number.isInteger(n * this.video.frameRate) && (n = Number.parseFloat((n - this.frameDurationSpillOverCorrection).toFixed(3)), this.video.setCorrectedDuration(n)), this.getHls().on(Ze.Events.FRAG_LOADED, (a, o) => {
16546
+ return Number.isInteger(Number.parseFloat((this.getDuration() * this.video.frameRate).toFixed(1))) && (n = Number.parseFloat((n - this.frameDurationSpillOverCorrection).toFixed(3)), this.video.setCorrectedDuration(n)), this.getHls().on(Ze.Events.FRAG_LOADED, (a, o) => {
16547
16547
  o.frag.endList && o.frag.type == "main" && this.getCorrectedDuration() > o.frag.start + o.frag.duration && this.video.setCorrectedDuration(Number.isInteger(o.frag.start + o.frag.duration * this.video.frameRate) ? o.frag.start + o.frag.duration - this.frameDurationSpillOverCorrection : o.frag.start + o.frag.duration);
16548
16548
  }), s;
16549
16549
  }), yi((s, n) => {
@@ -16783,7 +16783,11 @@ class Qm {
16783
16783
  return this.seekTimeAndSync(0, {});
16784
16784
  {
16785
16785
  let t = this.calculateFrameToTime(e) + new Z(this.frameDurationSpillOverCorrection).toNumber(), r = this.calculateTimeToFrame(t);
16786
- return r !== e && e != this.getCorrectedDuration() * this.getFrameRate() ? (console.error(`Frame numbers don't match. Wanted: ${e}, calculated: ${r}`), Se(!1)) : this.seekTimeAndSync(t, { seekToFrame: e, seekToTimestamp: t, currentTime: this.getCurrentTime() }).pipe(ke((s) => s));
16786
+ return r !== e && e != this.getCorrectedDuration() * this.getFrameRate() ? (console.error(`Frame numbers don't match. Wanted: ${e}, calculated: ${r}`), Se(!1)) : this.seekTimeAndSync(t, {
16787
+ seekToFrame: e,
16788
+ seekToTimestamp: t,
16789
+ currentTime: this.getCurrentTime()
16790
+ }).pipe(ke((s) => s));
16787
16791
  }
16788
16792
  }
16789
16793
  }