D deantangNYP Active Member Licensed User Longtime User Apr 21, 2016 #1 Would like to know if its possible to include a video streaming for a specific URL, http://192.168.0.51:9090/stream? Something like the following code. Unfortunately does not work. Not sure how to amend the HTML. Any advise is greatly appreciated. WebView1.LoadHtml("<html><body><video width='100%' height='100%' controls><source src='http://192.168.0.51:9090/stream' type='video/mjpeg'/></video></body></html>")
Would like to know if its possible to include a video streaming for a specific URL, http://192.168.0.51:9090/stream? Something like the following code. Unfortunately does not work. Not sure how to amend the HTML. Any advise is greatly appreciated. WebView1.LoadHtml("<html><body><video width='100%' height='100%' controls><source src='http://192.168.0.51:9090/stream' type='video/mjpeg'/></video></body></html>")
Erel B4X founder Staff member Licensed User Longtime User Apr 21, 2016 #2 Have you tried to load it with VideoView? If you want to try it with WebView then you should add a WebChromeClient with WebViewExtra: https://www.b4x.com/android/forum/threads/webviewextras.12453/#content Also add this to the manifest editor: B4X: SetApplicationAttribute(android:hardwareAccelerated, "true") Upvote 0
Have you tried to load it with VideoView? If you want to try it with WebView then you should add a WebChromeClient with WebViewExtra: https://www.b4x.com/android/forum/threads/webviewextras.12453/#content Also add this to the manifest editor: B4X: SetApplicationAttribute(android:hardwareAccelerated, "true")