File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,6 +331,7 @@ export class UIManager {
331331
332332 // Dynamically select a UI variant that matches the current UI condition.
333333 const resolveUiVariant = ( event : PlayerEventBase ) => {
334+ console . log ( 'resolve ui variant due to event' , JSON . stringify ( event ) ) ;
334335 // Make sure that the AdStarted event data is persisted through ad playback in case other events happen
335336 // in the meantime, e.g. player resize. We need to store this data because there is no other way to find out
336337 // ad details while an ad is playing (in v8.0 at least; from v8.1 there will be ads.getActiveAd()).
@@ -407,6 +408,7 @@ export class UIManager {
407408 * Since this can break functionality of components that rely on this event, we relay the event to the
408409 * ads UI components with the following call.
409410 */
411+ console . log ( 'Relaying additional AdStarted event' ) ;
410412 this . currentUi . getWrappedPlayer ( ) . fireEventInUI ( this . player . exports . PlayerEvent . AdStarted , adStartedEvent ) ;
411413 }
412414 } ,
@@ -519,6 +521,7 @@ export class UIManager {
519521 * is shown (if a switch is happening)
520522 */
521523 resolveUiVariant ( context : Partial < UIConditionContext > = { } , onShow ?: ( context : UIConditionContext ) => void ) : void {
524+ console . log ( 'effictive resolve ui variant with context' , JSON . stringify ( context ) ) ;
522525 // Determine the current context for which the UI variant will be resolved
523526 const defaultContext : UIConditionContext = {
524527 isAd : false ,
You can’t perform that action at this time.
0 commit comments