We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1d1d19 commit effaf95Copy full SHA for effaf95
ui/ad_counter.js
@@ -100,6 +100,11 @@ shaka.ui.AdCounter = class extends shaka.ui.Element {
100
goog.asserts.assert(this.ad != null,
101
'this.ad should exist at this point');
102
103
+ if (!this.ad.isLinear()) {
104
+ // Do not show information for non-linear ads.
105
+ return;
106
+ }
107
+
108
const secondsLeft = Math.round(this.ad.getRemainingTime());
109
const adDuration = this.ad.getDuration();
110
if (secondsLeft == -1 || adDuration == -1) {
0 commit comments