@byomakase/omakase-player 0.2.3 → 0.2.5

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.
@@ -11929,17 +11929,18 @@ class Nf extends Uo {
11929
11929
  this.onChange$.next(e);
11930
11930
  }
11931
11931
  onMeasurementsChange() {
11932
+ var i, s, n, a, o;
11932
11933
  super.onMeasurementsChange();
11933
- let e = this.startMarkerHandle.getVerticalMeasurement();
11934
- this.selectedAreaRect.setAttrs({
11934
+ let e = (i = this.startMarkerHandle) == null ? void 0 : i.getVerticalMeasurement();
11935
+ (s = this.selectedAreaRect) == null || s.setAttrs({
11935
11936
  y: e.y,
11936
11937
  height: e.height
11937
11938
  });
11938
11939
  let t = {
11939
- y: this.startMarkerHandle.getHandleGroup().y(),
11940
- height: this.startMarkerHandle.getHandleGroup().getClientRect().height
11940
+ y: (n = this.startMarkerHandle) == null ? void 0 : n.getHandleGroup().y(),
11941
+ height: (a = this.startMarkerHandle) == null ? void 0 : a.getHandleGroup().getClientRect().height
11941
11942
  };
11942
- this.markerHandleRect.setAttrs({
11943
+ (o = this.markerHandleRect) == null || o.setAttrs({
11943
11944
  y: e.y + t.y - t.height / 2,
11944
11945
  height: t.height
11945
11946
  }), this.settlePosition();
@@ -16922,7 +16923,7 @@ class qm extends jm {
16922
16923
  }
16923
16924
  initEventHandlers() {
16924
16925
  super.initEventHandlers(), this.hls.on(ze.Events.ERROR, function(e, t) {
16925
- t.type, t.details, t.fatal, console.error(e, t), (t.details === ze.ErrorDetails.BUFFER_STALLED_ERROR || t.details === ze.ErrorDetails.BUFFER_APPEND_ERROR || t.details === ze.ErrorDetails.BUFFER_APPENDING_ERROR) && (this.videoPlaybackStateHolder.buffering = !0);
16926
+ t.type, t.details, t.fatal, console.error(e, t), t.details === ze.ErrorDetails.BUFFER_STALLED_ERROR || t.details === ze.ErrorDetails.BUFFER_APPEND_ERROR || (t.details, ze.ErrorDetails.BUFFER_APPENDING_ERROR);
16926
16927
  });
16927
16928
  }
16928
16929
  getAudioTracks() {
@@ -17479,9 +17480,10 @@ class rg {
17479
17480
  return Qm;
17480
17481
  }
17481
17482
  destroy() {
17482
- this.onDestroy$ && (this.onDestroy$.next(), this.onDestroy$.complete()), this.timeline.getLanes().forEach((e) => {
17483
- e != null && (e.clearContent(), e.destroy());
17484
- }), this.timeline.destroy(), this.video.getHls().off(ze.Events.ERROR), this.video.getHls().destroy(), this.subtitlesController.destroy(), this.domController.destroy(), this.videoController.destroy();
17483
+ var e, t;
17484
+ this.onDestroy$ && (this.onDestroy$.next(), this.onDestroy$.complete()), (e = this.timeline) != null && e.getLanes() && this.timeline.getLanes().forEach((i) => {
17485
+ i != null && (i.clearContent(), i.destroy());
17486
+ }), this.timeline && this.timeline.destroy(), (t = this.video) != null && t.getHls() && (this.video.getHls().off(ze.Events.ERROR), this.video.getHls().destroy()), this.subtitlesController && this.subtitlesController.destroy(), this.domController && this.domController.destroy(), this.videoController && this.videoController.destroy();
17485
17487
  }
17486
17488
  }
17487
17489
  export {