Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTSP Server over 5G Mobile Network #64

Open
gercorri opened this issue Feb 28, 2022 · 3 comments
Open

RTSP Server over 5G Mobile Network #64

gercorri opened this issue Feb 28, 2022 · 3 comments

Comments

@gercorri
Copy link

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 How to use auth? #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 - How to connect from other wifi network? #36. Is this still the case or can it be exposed on the phone via its ip on the mobile network?

Thanks,
Gerard.

@pedroSG94
Copy link
Owner

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

@gercorri
Copy link
Author

gercorri commented Mar 2, 2022

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

@ToysoftInc
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants