Black video while working with ip camera in webview android -
I want to display an IP camera video in the Android application. I am using a webview for this. In my smartphone's navigator I can see and control the webcam, but the webview is always black in the video and the control does not work.
This is the source code of my activity:
enhances public class Menaktiviti activity (private webview webview; public void Crete (bundle saved Instansstet) {Suprknkret (saved Instensstet); setContentView (R.layout.fragment_main); webview = (webview) searches Vivibiaiaidi (RID. Vision); WebView.setWebChromeClient (new WebChromeClient ()); webView .setWebViewClient (new myWebViewClient ()); WebView.setHttpAuthUsernamePassword ( "http://192.168.1.2/", nULL, "administrator "TAP); webView.getSettings () setJavaScriptEnabled (right).. WebView.getSettings () setPluginState (PluginState.ON); webView.loadUrl (" http://192.168.1.2/ ");} public class myWebViewClient WebViewClient Improves {@ override public boolean should Ovrraiduarel loading (web weave scene, string url) {view.loadUrl (url); return true;}}}
the error I log Found! [Enter image details here] [1] Web Console without any reference error resolution has not been defined.
/ P>
Comments
Post a Comment