hls.js 1.6.6-0.canary.11353 → 1.6.6-0.canary.11355
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/hls.js +12 -4
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +2 -2
- package/dist/hls.light.js.map +1 -1
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.min.js.map +1 -1
- package/dist/hls.light.mjs +2 -2
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +12 -4
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +2 -2
- package/src/controller/interstitials-controller.ts +17 -2
- package/src/demux/transmuxer-worker.ts +1 -1
package/package.json
CHANGED
@@ -94,7 +94,7 @@
|
|
94
94
|
"babel-plugin-transform-remove-console": "6.9.4",
|
95
95
|
"chai": "4.5.0",
|
96
96
|
"chart.js": "2.9.4",
|
97
|
-
"chromedriver": "
|
97
|
+
"chromedriver": "138.0.0",
|
98
98
|
"doctoc": "2.2.1",
|
99
99
|
"es-check": "9.1.4",
|
100
100
|
"eslint": "8.57.1",
|
@@ -135,5 +135,5 @@
|
|
135
135
|
"url-toolkit": "2.2.5",
|
136
136
|
"wrangler": "4.22.0"
|
137
137
|
},
|
138
|
-
"version": "1.6.6-0.canary.
|
138
|
+
"version": "1.6.6-0.canary.11355"
|
139
139
|
}
|
@@ -1084,6 +1084,21 @@ export default class InterstitialsController
|
|
1084
1084
|
scheduleIndex: index,
|
1085
1085
|
player,
|
1086
1086
|
});
|
1087
|
+
if (currentItem !== this.playingItem) {
|
1088
|
+
// Schedule change occured on INTERSTITIAL_ASSET_ENDED
|
1089
|
+
if (
|
1090
|
+
this.itemsMatch(currentItem, this.playingItem) &&
|
1091
|
+
!this.playingAsset
|
1092
|
+
) {
|
1093
|
+
this.advanceAfterAssetEnded(
|
1094
|
+
interstitial,
|
1095
|
+
this.findItemIndex(this.playingItem),
|
1096
|
+
playingAssetListIndex,
|
1097
|
+
);
|
1098
|
+
}
|
1099
|
+
// Navigation occured on INTERSTITIAL_ASSET_ENDED
|
1100
|
+
return;
|
1101
|
+
}
|
1087
1102
|
this.retreiveMediaSource(assetId, scheduledItem);
|
1088
1103
|
if (player.media && !this.detachedData?.mediaSource) {
|
1089
1104
|
player.detachMedia();
|
@@ -1107,7 +1122,7 @@ export default class InterstitialsController
|
|
1107
1122
|
this.updateSchedule();
|
1108
1123
|
const items = this.schedule.items;
|
1109
1124
|
if (scheduledItem && items) {
|
1110
|
-
const updatedIndex = this.
|
1125
|
+
const updatedIndex = this.findItemIndex(scheduledItem);
|
1111
1126
|
this.advanceSchedule(
|
1112
1127
|
updatedIndex,
|
1113
1128
|
items,
|
@@ -2537,7 +2552,7 @@ Schedule: ${scheduleItems.map((seg) => segmentToString(seg))} pos: ${this.timeli
|
|
2537
2552
|
// If all assets in interstitial fail, mark the interstitial with an error
|
2538
2553
|
if (!interstitial.assetList.some((asset) => !asset.error)) {
|
2539
2554
|
interstitial.error = error;
|
2540
|
-
} else
|
2555
|
+
} else {
|
2541
2556
|
// Reset level details and reload/parse media playlists to align with updated schedule
|
2542
2557
|
for (let i = assetListIndex; i < interstitial.assetList.length; i++) {
|
2543
2558
|
this.resetAssetPlayer(interstitial.assetList[i].identifier);
|
@@ -2,7 +2,7 @@ import { EventEmitter } from 'eventemitter3';
|
|
2
2
|
import Transmuxer, { isPromise } from '../demux/transmuxer';
|
3
3
|
import { ErrorDetails, ErrorTypes } from '../errors';
|
4
4
|
import { Events } from '../events';
|
5
|
-
import { enableLogs, type
|
5
|
+
import { enableLogs, type ILogger } from '../utils/logger';
|
6
6
|
import type { RemuxedTrack, RemuxerResult } from '../types/remuxer';
|
7
7
|
import type { ChunkMetadata, TransmuxerResult } from '../types/transmuxer';
|
8
8
|
|