use of org.prebid.mobile.rendering.views.interstitial.InterstitialVideo in project prebid-mobile-android by prebid.
the class InterstitialView method showVideoAsInterstitial.
public void showVideoAsInterstitial() {
try {
final AdConfiguration adConfiguration = mAdViewManager.getAdConfiguration();
mInterstitialManager.configureInterstitialProperties(adConfiguration);
mInterstitialVideo = new InterstitialVideo(getContext(), InterstitialView.this, mInterstitialManager, adConfiguration);
mInterstitialVideo.setDialogListener(this::handleDialogEvent);
mInterstitialVideo.show();
} catch (final Exception e) {
LogUtil.error(TAG, "Video interstitial failed to show:" + Log.getStackTraceString(e));
notifyErrorListeners(new AdException(AdException.INTERNAL_ERROR, e.getMessage()));
}
}
Aggregations