Skip to content

Commit

Permalink
fix(Ads): fix pre-roll identification when using src= (#7493)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Oct 24, 2024
1 parent 5e1fc5a commit 576e4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -3250,7 +3250,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
continue;
}
if (this.adManager_) {
const isPreRoll = interstitial.startTime == 0;
const isPreRoll = interstitial.startTime == 0 && !this.isLive();
// It seems that CUE is natively omitted, by default we use CUE=ONCE
// to avoid repeating them.
interstitial.values.push({
Expand Down

0 comments on commit 576e4a5

Please sign in to comment.