Connecting to php script using socket and asyncstreams doesn't work

Sergio83

Member
Licensed User
Longtime User
Hello everyone and Merry Christmas!

So, I wrote a B4A application to capture and display the MJPG stream from an IP camera and everything works fine using the cam url and port.

As I do not want to address my camera by its url, I wrote a php script that makes a redirection to this camera.

I therefore I replaced the url and the port of the camera by those of this PHP script, and there, nothing works or almost:

- the socket connection is ok, but no "newdata" event raises after initializing the asyncstreams and sending the http header get request.

Note that the addressing of this script via a browser works perfectly: I can see the video

If someone can help me, it would be a nice Christmas gift for me!

Thank you in advance for your assistance
 

Sergio83

Member
Licensed User
Longtime User
Hello Erel,

Sorry for mistaken, I'm not very familiar with the forum, I will do my best next time ...

Best regards
 
Top