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 committed Jul 24, 2024
1 parent ee12c74 commit c0723c2
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 @@ -604,14 +604,14 @@ shaka.ads.InterstitialAdManager = class {
pre = data.includes('PRE');
post = data.includes('POST');
}
let timelineRange = true;
let timelineRange = false;
const timelineOccupies =
interstitial.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 c0723c2

Please sign in to comment.