We are experiencing an issue where video playback flickers when an advertisement is being played on ExoPlayer that outputs to a SurfaceView that has the IMA WebView on top of it.
OS Version: Android 4.1.2
Device: Google Nexus 7 (1st gen)
Steps to reproduce:
- Create a FrameLayout containing the following views:
Index 0: SurfaceView (for ExoPlayer to output too)
Index 1: IMA WebView (just pass the FrameLayout in as AdContainer to the IMA SDK to achieve this).
- Start Ad Playback, on a Nexus 7 the Ad Playback will flicker because of issues with rendering the WebView on top of the SurfaceView.
Solution:
In order to stop the playback from flickering the layer type of IMA's WebView should be set to "WebView.LAYER_TYPE_SOFTWARE" on Android 4.1.2 devices.
We currently do this through a kind of dirty way, in order to fix this issue. However it would be nice if this could be done at IMA's end.
If you need more information to reproduce this problem, please send me an email.
Thanks.