Android Question MJPEG decoder Example

Almora

Active Member
Licensed User
Longtime User
hey marcoRome for beginners and everyone to take advantage of the question move here ..
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
What is the question?

Hi, the link:
96.249.39.25/mjpg/video.mjpg

work without problem in browser

upload_2019-1-26_7-38-9-png.76722


If i try in B4J dont work.

upload_2019-1-26_7-36-37-png.76721


Where i wrong ?
Thank you
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You will notice two things if you enter this URL in the browser:

1. It redirects to https.
2. The SSL certificate is not recognized.

You need to do two things to get it working:

1. Change the port to 443. This is the "https" port.
2. Create a SSL socket that accepts all certificates: https://www.b4x.com/android/forum/threads/b4x-trust-all-ssl-socket.101952/#content
Replace sock.Initialize with:
B4X:
sock = CreateTrustAllSSLSocket("sock")
 
Upvote 0
Top