RTSP-Server icon indicating copy to clipboard operation
RTSP-Server copied to clipboard

RTSP Server over 5G Mobile Network

Open gercorri opened this issue 3 years ago • 3 comments

Hi, I have a use case where I need to run an rtsp server on android devices to essentially turn the camera on the device into an IP camera with an rtsp pull url. i.e. so we can connect directly to the phone and have live playback of the video from the camera.

Your project looks very interesting but I have a few questions:

  1. Is say a closed issue regarding auth https://github.com/pedroSG94/RTSP-Server/issues/37. I just wanted to confirm if we can use basic auth so that we can connect to the rtsp stream using a url in this format - rtsp://username:password@:5554/camera?

  2. I saw a closed issue where it mentioned about only being able to expose the rtsp port on the local network via the router - https://github.com/pedroSG94/RTSP-Server/issues/36. Is this still the case or can it be exposed on the phone via its ip on the mobile network?

Thanks, Gerard.

gercorri avatar Feb 28 '22 16:02 gercorri

1 - Yes, you can use basic auth. I did the test with VLC connecting to server as normal and VLC ask about auth so This should work with others players. If it isn't working for you let me know player used to emulate it and solve your case. To enable auth in server you need to use this line before start it:

rtspServerCamera1.setAuthorization()

2 - This is not a limitation of the library. It is a limitation of each telephony provider. In my case I'm not enable to do it. Apparently each telephony provider decide if they want let you open a port or not and maybe you have the range limited. https://stackoverflow.com/questions/4032482/serversocket-accept-not-accepting-connections-on-android The solution is look for a provider that allow you do it but I don't know which one

pedroSG94 avatar Mar 01 '22 09:03 pedroSG94

@pedroSG94 thanks for your response, that is really helpful.

gercorri avatar Mar 02 '22 12:03 gercorri

You can aslo get a static IP address on your phone.

ToysoftInc avatar Apr 02 '22 15:04 ToysoftInc