Android Question problem using MJPEG CCTV

frederic

Member
Licensed User
Longtime User
Hello,

I would like to use MJPEG CCTV with a program on my Galaxy, with a simple code like below :

Sub Activity_Create(FirstTime As Boolean)
WebView1.Initialize("WebView1")
Activity.AddView(WebView1, 0, 0, 100%x, 100%y)
End Sub

Sub Activity_Resume
Dim Url="192.168.1.13:51042" As String
WebView1.LoadUrl(Url)
End Sub

Sub Activity_Pause (UserClosed As Boolean)
End Sub

I try also with the WebViewExtras1.addWebChromeClient(WebView1, "") code,
but at each time the Web page responds me that the page was not found, by google.

If I try manually with Chrome, so I write the device address, and ok I can watch by the camera.
But automatically is nothing?
Some body can help me?
Thank you very much.
Best regards.
Frédéric
 

DonManfred

Expert
Licensed User
Longtime User
1. Please use [CODE]code here...[/CODE] tags when posting code.
2. Try it with a correct URL
B4X:
Dim Url="http://192.168.1.13:51042" As String
 
Upvote 0

frederic

Member
Licensed User
Longtime User
1. Please use [CODE]code here...[/CODE] tags when posting code.
2. Try it with a correct URL
B4X:
Dim Url="http://192.168.1.13:51042" As String
Thank you DonManfred,
I Try it, but nothing appears on the screen.! (blank, without some errors?)
Is it a problem with some right on google, on my phone?
When I test manually in Chrome website, I write just the Ip adress without "http://".
Which difference between each website , Google and Chrome?
Best regards
frédéric
 
Upvote 0

frederic

Member
Licensed User
Longtime User
Hello Erel,
I think it is a confusion, I will use the Webview into my Android device (so in B4A) and not in B4J.
How can I make?
My goal : is to watch images from the camera, from another Android device.
Thank for your responds.
Best regard.
frederic
 
Upvote 0
Top