Skip to content

Commit

Permalink
fix(Ads): Fix timelineRange detection in HLS interstitials (#7091)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Jul 23, 2024
1 parent a5adb39 commit d79f8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ads/interstitial_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,14 +680,14 @@ shaka.ads.InterstitialAdManager = class {
pre = data.includes('PRE');
post = data.includes('POST');
}
let timelineRange = true;
let timelineRange = false;
const timelineOccupies =
hlsInterstitial.values.find((v) => v.key == 'X-TIMELINE-OCCUPIES');
if (timelineOccupies) {
const data = /** @type {string} */(timelineOccupies.data);
timelineRange = data.includes('RANGE');
} else if (!resume && this.basePlayer_.isLive()) {
timelineRange = true;
timelineRange = !pre && !post;
}
if (assetUri) {
const uri = /** @type {string} */(assetUri.data);
Expand Down

0 comments on commit d79f8e2

Please sign in to comment.