Skip to content

Commit

Permalink
fix: video outstream watch again problem #475
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinPostindustria committed Jun 8, 2022
1 parent aacb0c6 commit f82b63c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public class AdViewManager implements CreativeViewListener, TransactionManagerLi

private static final String TAG = AdViewManager.class.getSimpleName();

private boolean builtInVideoFirstStart = true;

private final InterstitialManager interstitialManager;

private AdUnitConfiguration adConfiguration = new AdUnitConfiguration();
Expand Down Expand Up @@ -220,7 +222,12 @@ public AdUnitConfiguration getAdConfiguration() {
}

public boolean isAutoDisplayOnLoad() {
return adConfiguration.isAdType(AdFormat.BANNER) || adConfiguration.isBuiltInVideo();
boolean result = adConfiguration.isAdType(AdFormat.BANNER);
if (builtInVideoFirstStart) {
builtInVideoFirstStart = false;
result = result || adConfiguration.isBuiltInVideo();
}
return result;
}

public void destroy() {
Expand Down

0 comments on commit f82b63c

Please sign in to comment.