alexeyvasilyev / rtsp-client-android

Lightweight low-latency RTSP client library for Android
Apache License 2.0
229 stars 60 forks source link

Basic/Digest authentication #67

Closed jpage4500 closed 11 months ago

jpage4500 commented 11 months ago

Hi @alexeyvasilyev

Hope you're doing well! I had a question -- someone using my app asked if digest authentication was supported for the video tile which uses this library.

I see both basic and digest authentication mentioned in the README but how do you determine which one to use? I don't see any different methods for logging in

alexeyvasilyev commented 11 months ago

This is a code which check basic/digest auth to be used https://github.com/alexeyvasilyev/rtsp-client-android/blob/a09e9298226737222df591636f9b606cbe30b346/library-client-rtsp/src/main/java/com/alexvas/rtsp/RtspClient.java#L286 So it checks if digest realm is present and uses digest auth in this case, otherwise basic.