File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,8 @@ shaka.ads.InterstitialAdManager = class {
224
224
}
225
225
}
226
226
} ) ;
227
+
228
+ this . configure ( this . basePlayer_ . getConfiguration ( ) . ads ) ;
227
229
}
228
230
229
231
/**
@@ -315,6 +317,7 @@ shaka.ads.InterstitialAdManager = class {
315
317
*/
316
318
determineIfUsingBaseVideo_ ( ) {
317
319
if ( ! this . adContainer_ || ! this . config_ || this . playingAd_ ) {
320
+ this . usingBaseVideo_ = true ;
318
321
return ;
319
322
}
320
323
let supportsMultipleMediaElements =
@@ -889,7 +892,8 @@ shaka.ads.InterstitialAdManager = class {
889
892
this . determineIfUsingBaseVideo_ ( ) ;
890
893
goog . asserts . assert ( this . video_ , 'Must have video' ) ;
891
894
892
- if ( ! this . video_ . parentElement && this . adContainer_ ) {
895
+ if ( ! this . usingBaseVideo_ && this . adContainer_ &&
896
+ ! this . video_ . parentElement ) {
893
897
this . adContainer_ . appendChild ( this . video_ ) ;
894
898
}
895
899
You can’t perform that action at this time.
0 commit comments