-
Notifications
You must be signed in to change notification settings - Fork 6k
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 DESCRIBE 401 when both BASIC and DIGEST auth is offered. #9800
Comments
The error happened because the server doesn't recognize the provided authentication info ( and see if it matches As an aside, the current regex does match |
My guess is, although your server provides BASIC auth scheme, it does not actually supports it. The server supports digest auth only. |
I can confirm that it matches If the problem is on the server how can VLC play it? |
It would be helpful if you wireshark VLC and confirm if it uses digest instead. If it is, it's a sign for us to add "force using digest auth" |
I was able to debug it. Here is the flow:
It seems you've guessed rigth. How can I force exoplayer to use DIGEST auth instead until you fix it? |
You can patch
|
I have tried the patch, it forces the digest auth, but after the authentication I get the same error as before. EDIT: I've just realized that it's not the same error, it's now SETUP 401. Should I open another issue for this? These are the logs I get:
|
Can you try building |
Thanks @claincly |
A note on why When ExoPlayer retries for using TCP, the flow is like
The server does not accept initiating authentication when performing SETUP, but ExoPlayer's TCP retrying logic starts with SETUP. In VLC's case, the retry logic starts the entire RTSP exchange (from OPTIONS, to DESCRIBE, SETUP, PLAY) again. |
Issue: #9800 Added test for RTSP authentication. PiperOrigin-RevId: 420048821
Issue: google/ExoPlayer#9800 Added test for RTSP authentication. PiperOrigin-RevId: 420048821
When trying to play a HikVision IP Camera I get
DESCRIBE 401
error.The URL looks like this:
rtsp://USER:[email protected]:554/Streaming/channels/102
Formats ( based on VLC's media information ) :
H264 - MPEG-4 AVC (part 10) (h264)
Changing
WWW_AUTHENTICATION_HEADER_BASIC_PATTERN
to matchWWW-Authenticate: Basic realm="IP Camera(C1214)"
( mentioned here ) didn't help, although I think it is also an issue because it currently doesn't recognize capital letters and numbers.Auth
Error
Versions
The text was updated successfully, but these errors were encountered: