hls.js 1.6.0-beta.3.0.canary.10960 → 1.6.0-beta.3.0.canary.10961
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.d.mts +1 -0
- package/dist/hls.d.ts +1 -0
- package/dist/hls.js +19 -7
- package/dist/hls.js.d.ts +1 -0
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +2 -2
- package/dist/hls.light.min.js +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 +17 -7
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +1 -1
- package/src/controller/interstitials-controller.ts +12 -4
- package/src/controller/interstitials-schedule.ts +3 -0
- package/src/loader/interstitial-event.ts +5 -1
@@ -208,7 +208,7 @@ export class InterstitialEvent {
|
|
208
208
|
get duration(): number {
|
209
209
|
const playoutLimit = this.playoutLimit;
|
210
210
|
let duration: number;
|
211
|
-
if (this._duration) {
|
211
|
+
if (this._duration !== null) {
|
212
212
|
duration = this._duration;
|
213
213
|
} else if (this.dateRange.duration) {
|
214
214
|
duration = this.dateRange.duration;
|
@@ -256,6 +256,10 @@ export class InterstitialEvent {
|
|
256
256
|
return this.base.url;
|
257
257
|
}
|
258
258
|
|
259
|
+
get assetListLoaded(): boolean {
|
260
|
+
return this.assetList.length > 0 || this.assetListResponse !== null;
|
261
|
+
}
|
262
|
+
|
259
263
|
toString(): string {
|
260
264
|
return eventToString(this);
|
261
265
|
}
|