Search in sources :

Example 1 with InterstitialVideo

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()));
    }
}
Also used : AdConfiguration(org.prebid.mobile.rendering.models.AdConfiguration) InterstitialVideo(org.prebid.mobile.rendering.views.interstitial.InterstitialVideo) AdException(org.prebid.mobile.rendering.errors.AdException) AdException(org.prebid.mobile.rendering.errors.AdException)

Aggregations

AdException (org.prebid.mobile.rendering.errors.AdException)1 AdConfiguration (org.prebid.mobile.rendering.models.AdConfiguration)1 InterstitialVideo (org.prebid.mobile.rendering.views.interstitial.InterstitialVideo)1