We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f4d2d2 commit 8566836Copy full SHA for 8566836
ui/ad_position.js
@@ -91,9 +91,9 @@ shaka.ui.AdPosition = class extends shaka.ui.Element {
91
*/
92
setPosition_() {
93
const adsInAdPod = this.ad.getSequenceLength();
94
- if (adsInAdPod > 1) {
+ if (adsInAdPod > 1 && this.ad.isLinear()) {
95
// If it's a single ad, showing 'Ad 1 of 1' isn't helpful.
96
- // Only show this element if there's more than 1 ad.
+ // Only show this element if there's more than 1 ad and it's a linear ad.
97
const LocIds = shaka.ui.Locales.Ids;
98
const adPosition = this.ad.getPositionInSequence();
99
this.span_.textContent = this.localization.resolve(LocIds.AD_PROGRESS)
0 commit comments