webcam live in webview

fifiddu70

Well-Known Member
Licensed User
Longtime User
Hello everyone, I need to take real-time images from a webcam and display them in a webview, my problem is that the image also includes whitespace, how can I see only the image in the webview? I'll post my code.
B4X:
Sub Activity_Create(FirstTime As Boolean)
   'Do not forget to load the layout file created with the visual designer. For example:
   Activity.LoadLayout("pantelleria")
   webview1.LoadUrl("http://79.34.75.64:1150/main.htm")
   
End Sub
 

aaronk

Well-Known Member
Licensed User
Longtime User
Hello,

You can't use your WebCam in the WebView as ActiveX controls only work in IE and not on Android.

If you can get the MJEPG, H.264 or get a snapshot from the camera you will be able to use it on Android, but you can't load a ActiveX Control as that is what your camera is using. (as per your example URL)
 
Upvote 0

fifiddu70

Well-Known Member
Licensed User
Longtime User
this is a link where you can find the jpeg, you see the webcam image update in real time, I can capture the image, but how do I display the image in real time on Android? when I perform a refresh of the page I get a load of the entire page, this is not good, I would run only refresh the image, how do I?
this is link
Bluemoon

this is the property of image:
http://79.34.75.64:1151/jpg/image.jpg
other problem, how to resize this image, is big for show in my project and device.
 
Upvote 0

madSac

Active Member
Licensed User
Longtime User
You can start a timer of interval you want to refresh and then on every timer event refresh the page.and use the url of image not the page.
 
Upvote 0
Top