Android Question MJPEG decoder and Protected Camera Problem

Ohanian

Active Member
Licensed User
Longtime User
Hi,
i'm trying to get the image from an IP camera, but got no result, the sample works fine, but with my values there's no result.

sample code :
B4X:
mj1.Initialize(Me, "mj1")
mj1.Connect("96.249.39.25/mjpg/video.mjpg", 80)

my code :
B4X:
mj1.Initialize(Me, "mj1")
mj1.Connect("opr:[email protected]/mjpg/video.mjpg", 8000)

The differences are:
Port Number, mine is 8000
User credentials

any suggestion?
 

Ohanian

Active Member
Licensed User
Longtime User
Add Log(BytesToString(buffer, 0, buffer.length, "utf8")) to AStream_NewData event and see what the server returns.

got this message in Sock_Connected with Successful = false

B4X:
(GaiException) android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)

B4X:
hostname > opr:[email protected]
 
Upvote 0

Ohanian

Active Member
Licensed User
Longtime User
Hi,

i don't see any way to pass the user credentials to Socket!
could you please be more specific?

tnx
 
Upvote 0
Top