I’m trying to embed a twitter video in my android application using a WebView.
Its working correctly on all devices on and above android version Lollipop(API level 21). It is working even on Android Version 4.1.2. However, the video is not loading on certain versions - Version 4.4.2. It just shows a black screen for the video player and nothing loads.
I’m using the following html code to embed the video:
http://pastebin.com/KWGp2Qey
I tried debugging the issue and I’m seeing the following error getting thrown from the WebView:
Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.
Can someone help me figure out what is going wrong with this strange issue. The same code works on different android versions and even on desktop. Thanks in advance.