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

How to use auth? #37

Closed
ToysoftInc opened this issue Apr 30, 2021 · 7 comments
Closed

How to use auth? #37

ToysoftInc opened this issue Apr 30, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@ToysoftInc
Copy link

I notice this isn't implemented

override fun setAuthorization(user: String, password: String) { //not developed
}

How would you recommend do this? thanks

@pedroSG94
Copy link
Owner

pedroSG94 commented May 1, 2021

Hello,

This is not developed because I can't find a rtsp player with support for auth. This is easy to develop but I can't test it.
If you can find a player that support digest auth and basic auth I can add it to project.
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtsp/src/main/java/com/pedro/rtsp/rtsp/commands/CommandsManager.kt#L150
That auth should be send by player in rtsp methods:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtsp/src/main/java/com/pedro/rtsp/rtsp/commands/CommandsManager.kt#L127

@ToysoftInc
Copy link
Author

I found this link that talks about using vlc player

https://www.arcdyn.com/articles/use-rtsp-to-view-your-arcdyn-security-cameras-in-vlc-media-player/

I have the latest vlc player and using it to test your demo app.

Thanks

@ToysoftInc
Copy link
Author

Here is a Youtube for vlc connecting to an ipcamera with user/password

https://www.youtube.com/watch?v=pZDP_Kf3oLk&ab_channel=Finchtech

@pedroSG94 pedroSG94 added the enhancement New feature or request label May 1, 2021
@pedroSG94
Copy link
Owner

Ok, marked as feature.

Thanks for the info

@ToysoftInc
Copy link
Author

ToysoftInc commented May 1, 2021

Thank you. Hope you add this feature soon.

Also, here is another player https://blueirissoftware.com/

@pedroSG94
Copy link
Owner

Rtsp basic auth is working now:
7d705ab
I tested it using VLC. I have plan to develop digest auth too.

@ToysoftInc
Copy link
Author

ToysoftInc commented May 4, 2021

cool thx. It works!!

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

No branches or pull requests

2 participants