dasha 4.4.1 → 4.4.2

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/index.d.mts CHANGED
@@ -610,6 +610,7 @@ type SegmentableBacking = {
610
610
  getDecoderConfig?(): Promise<VideoDecoderConfig | AudioDecoderConfig | null>;
611
611
  getMetadataCodecParameterString?(): string | null | Promise<string | null>;
612
612
  getSegmentedInput?(): HlsSegmentedInput | DashSegmentedInput;
613
+ segmentedInput?: HlsSegmentedInput;
613
614
  getSource?(): Source;
614
615
  };
615
616
  type NativeTrackBacking = SegmentableBacking;
package/dist/index.mjs CHANGED
@@ -1508,6 +1508,7 @@ var ImportedAudioTrackBacking = class {
1508
1508
  }
1509
1509
  getSegmentedInput() {
1510
1510
  if (this.#backing.getSegmentedInput) return this.#backing.getSegmentedInput();
1511
+ if (this.#backing.segmentedInput) return this.#backing.segmentedInput;
1511
1512
  const hlsBacking = this.#backing;
1512
1513
  if (hlsBacking.internalTrack?.demuxer?.getSegmentedInputForPath) return hlsBacking.internalTrack.demuxer.getSegmentedInputForPath(hlsBacking.internalTrack.fullPath);
1513
1514
  return this.#wholeResourceSegmentedInput;
@@ -1541,6 +1542,7 @@ const patchBaseMediabunnyInput = () => {
1541
1542
  const getSegmentedInputForTrack = (track) => {
1542
1543
  const backing = getTrackBacking(track);
1543
1544
  if ("getSegmentedInput" in backing && typeof backing.getSegmentedInput === "function") return backing.getSegmentedInput();
1545
+ if ("segmentedInput" in backing && backing.segmentedInput) return backing.segmentedInput;
1544
1546
  const internalTrack = backing.internalTrack;
1545
1547
  return internalTrack.demuxer.getSegmentedInputForPath(internalTrack.fullPath);
1546
1548
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dasha",
3
- "version": "4.4.1",
3
+ "version": "4.4.2",
4
4
  "description": "Streaming manifest parser",
5
5
  "files": [
6
6
  "dist"