Describe the bug
The cover appears, the loading spins and, when the video starts, there is a crash:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at com.android.webview.chromium.WebViewContentsClientAdapter.getDefaultVideoPoster(WebViewContentsClientAdapter.java:992)
at com.android.org.chromium.android_webview.DefaultVideoPosterRequestHandler$1.run(DefaultVideoPosterRequestHandler.java:39)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5312)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
This behavior don't affect iOS.
To Reproduce
Steps to reproduce the behavior:
Unknown (I've implemented the player for iOS and then when I tested on Android, this crash terminated my app).
Expected behavior
To work.
Technical Details:
Additional context
There is a Google AdMob banner at the bottom of the page (so my app is built with a container with a bottom padding to accomodate the banner, since the ad plugin only shows banners on top or bottom)
me too ,on android 5.1
Most helpful comment
me too ,on android 5.1