Ohanian Active Member Licensed User Longtime User Apr 14, 2017 #1 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 : Code: Copy mj1.Initialize(Me, "mj1") mj1.Connect("96.249.39.25/mjpg/video.mjpg", 80) my code : Code: Copy 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?
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 : Code: Copy mj1.Initialize(Me, "mj1") mj1.Connect("96.249.39.25/mjpg/video.mjpg", 80) my code : Code: Copy 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?
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2017 #2 Add Log(BytesToString(buffer, 0, buffer.length, "utf8")) to AStream_NewData event and see what the server returns. Upvote 0
Add Log(BytesToString(buffer, 0, buffer.length, "utf8")) to AStream_NewData event and see what the server returns.
Ohanian Active Member Licensed User Longtime User Apr 14, 2017 #3 Erel said: Add Log(BytesToString(buffer, 0, buffer.length, "utf8")) to AStream_NewData event and see what the server returns. Click to expand... got this message in Sock_Connected with Successful = false Code: Copy (GaiException) android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname) Code: Copy hostname > opr:[email protected] Upvote 0
Erel said: Add Log(BytesToString(buffer, 0, buffer.length, "utf8")) to AStream_NewData event and see what the server returns. Click to expand... got this message in Sock_Connected with Successful = false Code: Copy (GaiException) android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname) Code: Copy hostname > opr:[email protected]
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2017 #4 This link will not work: opr:[email protected]/mjpg/video.mjpg See how the Connect sub is implemented. It does everything manually. You will need to modify it and set the correct host and add any header you need. Upvote 0
This link will not work: opr:[email protected]/mjpg/video.mjpg See how the Connect sub is implemented. It does everything manually. You will need to modify it and set the correct host and add any header you need.
Ohanian Active Member Licensed User Longtime User Apr 14, 2017 #5 Hi, i don't see any way to pass the user credentials to Socket! could you please be more specific? tnx Upvote 0
Hi, i don't see any way to pass the user credentials to Socket! could you please be more specific? tnx
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2017 #6 You need to add an Authentication header. See the client side explanation: https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side Upvote 0
You need to add an Authentication header. See the client side explanation: https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side