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 bagic authentication exception #9428

Closed
vidicunt opened this issue Sep 15, 2021 · 3 comments
Closed

RTSP bagic authentication exception #9428

vidicunt opened this issue Sep 15, 2021 · 3 comments
Assignees
Labels

Comments

@vidicunt
Copy link

vidicunt commented Sep 15, 2021

I'm trying to connect to a C210 Tapo TP-LINK camera but I'm getting an exception. VLC works fine.

2021-09-15 09:53:11.736 30983-31096/com.bumtzihouse.app E/ExoPlayerImplInternal: Playback error
      com.google.android.exoplayer2.ExoPlaybackException: Source error
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:624)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:600)
        at android.os.Handler.dispatchMessage(Handler.java:103)
        at android.os.Looper.loop(Looper.java:214)
        at android.os.HandlerThread.run(HandlerThread.java:67)
     Caused by: java.io.IOException: com.google.android.exoplayer2.ParserException: Invalid WWW-Authenticate header Digest realm="TP-Link IP-Camera", nonce="3b3bcc47802955f801a4c753506c1d35"
        at com.google.android.exoplayer2.source.rtsp.RtspMediaPeriod$InternalListener.onSessionTimelineRequestFailed(RtspMediaPeriod.java:562)
        at com.google.android.exoplayer2.source.rtsp.RtspClient.dispatchRtspError(RtspClient.java:261)
        at com.google.android.exoplayer2.source.rtsp.RtspClient.access$500(RtspClient.java:66)
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.handleRtspMessage(RtspClient.java:525)
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.lambda$onRtspMessageReceived$0$RtspClient$MessageListener(RtspClient.java:420)
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener$$ExternalSyntheticLambda0.run(Unknown Source:4)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:214) 
        at android.os.HandlerThread.run(HandlerThread.java:67) 
     Caused by: com.google.android.exoplayer2.source.rtsp.RtspMediaSource$RtspPlaybackException: com.google.android.exoplayer2.ParserException: Invalid WWW-Authenticate header Digest realm="TP-Link IP-Camera", nonce="3b3bcc47802955f801a4c753506c1d35"
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.handleRtspMessage(RtspClient.java:525) 
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.lambda$onRtspMessageReceived$0$RtspClient$MessageListener(RtspClient.java:420) 
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener$$ExternalSyntheticLambda0.run(Unknown Source:4) 
        at android.os.Handler.handleCallback(Handler.java:883) 
        at android.os.Handler.dispatchMessage(Handler.java:100) 
        at android.os.Looper.loop(Looper.java:214) 
        at android.os.HandlerThread.run(HandlerThread.java:67) 
     Caused by: com.google.android.exoplayer2.ParserException: Invalid WWW-Authenticate header Digest realm="TP-Link IP-Camera", nonce="3b3bcc47802955f801a4c753506c1d35"
        at com.google.android.exoplayer2.source.rtsp.RtspMessageUtil.parseWwwAuthenticateHeader(RtspMessageUtil.java:437)
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.handleRtspMessage(RtspClient.java:451)
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.lambda$onRtspMessageReceived$0$RtspClient$MessageListener(RtspClient.java:420) 
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener$$ExternalSyntheticLambda0.run(Unknown Source:4) 
        at android.os.Handler.handleCallback(Handler.java:883) 
        at android.os.Handler.dispatchMessage(Handler.java:100) 
        at android.os.Looper.loop(Looper.java:214) 
        at android.os.HandlerThread.run(HandlerThread.java:67)

This is the camera: rtsp://google:exoplayer@tommyzat.go.ro:554/stream1

@nibblis
Copy link

nibblis commented Sep 15, 2021

response from camera contains "-"
WWW-Authenticate header Digest realm="TP-Link IP-Camera", nonce="3b3bcc47802955f801a4c753506c1d35"

need to change regex WWW_AUTHENTICATION_HEADER_DIGEST_PATTERN in RtspMessageUtil, add "-"

@claincly
Copy link
Contributor

WIll be fixed soon

christosts pushed a commit that referenced this issue Sep 16, 2021
Issue: #9428

#minor-release

PiperOrigin-RevId: 397064086
@christosts
Copy link
Contributor

The fix will be included in the upcoming 2.15.1 release.

christosts pushed a commit that referenced this issue Sep 21, 2021
Issue: #9428

PiperOrigin-RevId: 397064086
@google google locked and limited conversation to collaborators Nov 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants