For IMA, it pause for few seconds and then the ad appears correctly. Looking at the log, I saw:
I/ImaExample(12748): Event: LOADED
I/ImaExample(12748): Event: CONTENT_PAUSE_REQUESTED
V/MediaPlayer-JNI(12748): native_setup
V/MediaPlayer(12748): constructor
V/MediaPlayer(12748): setListener
V/MediaPlayer-JNI(12748): get_session_id()
I/MediaPlayer(12748): path is null
D/MediaPlayer(12748): setDataSource IOException happend :
D/MediaPlayer(12748): java.io.FileNotFoundException: No content provider: https://redirector.gvt1.com/videoplayback/id/8bd2c53a3e15469d/itag/43/source/gfp_video_ads/requiressl/yes/ip/0.0.0.0/ipbits/0/expire/1434077857/sparams/ip,ipbits,expire,id,itag,source,requiressl/signature/9E7D82CC561FB3A6D8B2683061245F861DEFA2F3.68EC401C318F866F21FA2349061284D039C9331D/key/ck2/file/file.webm
D/MediaPlayer(12748): at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1053)
D/MediaPlayer(12748): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:907)
D/MediaPlayer(12748): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:834)
D/MediaPlayer(12748): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:992)
D/MediaPlayer(12748): at android.widget.VideoView.openVideo(VideoView.java:338)
D/MediaPlayer(12748): at android.widget.VideoView.setVideoURI(VideoView.java:248)
D/MediaPlayer(12748): at android.widget.VideoView.setVideoURI(VideoView.java:238)
D/MediaPlayer(12748): at android.widget.VideoView.setVideoPath(VideoView.java:234)
D/MediaPlayer(12748): at com.google.ads.interactivemedia.v3.samples.videoplayerapp.VideoPlayerWithAdPlayback$1.loadAd(VideoPlayerWithAdPlayback.java:91)
D/MediaPlayer(12748): at com.google.ads.interactivemedia.v3.impl.y.a(IMASDK:102)
D/MediaPlayer(12748): at com.google.ads.interactivemedia.v3.impl.v.e(IMASDK:462)
D/MediaPlayer(12748): at com.google.ads.interactivemedia.v3.impl.v.a(IMASDK:288)
D/MediaPlayer(12748): at com.google.ads.interactivemedia.v3.impl.w.b(IMASDK:126)
D/MediaPlayer(12748): at com.google.ads.interactivemedia.v3.impl.w$1.shouldOverrideUrlLoading(IMASDK:54)
D/MediaPlayer(12748): at com.android.webview.chromium.WebViewContentsClientAdapter.shouldOverrideUrlLoading(WebViewContentsClientAdapter.java:293)
D/MediaPlayer(12748): at com.android.org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(AwContentsClientBridge.java:96)
D/MediaPlayer(12748): at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
D/MediaPlayer(12748): at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:27)
D/MediaPlayer(12748): at android.os.Handler.dispatchMessage(Handler.java:102)
D/MediaPlayer(12748): at android.os.Looper.loop(Looper.java:146)
D/MediaPlayer(12748): at android.app.ActivityThread.main(ActivityThread.java:5487)
D/MediaPlayer(12748): at java.lang.reflect.Method.invokeNative(Native Method)
D/MediaPlayer(12748): at java.lang.reflect.Method.invoke(Method.java:515)
D/MediaPlayer(12748): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
D/MediaPlayer(12748): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
D/MediaPlayer(12748): at dalvik.system.NativeStart.main(Native Method)
D/MediaPlayer(12748): Couldn't open file on client side, trying server side
V/MediaPlayerService( 174): Create new client(3) from pid 12748, uid 10190,
I/MediaPlayerFactory( 174): Create NuPlayer
I/MediaPlayerService( 174): Setting player type to NuPlayer
So, does it mean the ad is not available in a format and so it falls back to other format?
For that, is there supposed an event send out from IMA? If yes, what will that be? Because it doesn't look like GMF is handling that well.
Thanks in advance.