mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.94k stars 598 forks source link

DESCRIBE auth fail on TP-LINK IP-Camera #698

Closed pinocc01 closed 4 months ago

pinocc01 commented 4 months ago

device model is TL-IPC637P-ZOOM-DUAL 1.0 webrtc-streamer-v0.8.5

VLC can auth ok, but webrtc-streamer failed

i found the key dif is the uri param in DESCRIBE req when VLC send DESCRIBE, no user and pass in uri

log from webrtcstreamer, auth fail

Sending request: DESCRIBE rtsp://admin:*****@x.x.x.x/stream2 RTSP/1.0
CSeq: 3
Authorization: Digest username="admin", realm="TP-LINK IP-Camera", nonce="43e0c46e2c4e8525c0226faa8ecb6e8a", uri="rtsp://admin:*****@x.x.x.x/stream2", response="c158f122c4f48701516a867b93a68422"
User-Agent: LIVE555 Streaming Media v2023.11.30
Accept: application/sdp

Received 220 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 401 Unauthorized

VLC log, auth ok

Real Time Streaming Protocol
    Request: DESCRIBE rtsp://x.x.x.x:554/stream2 RTSP/1.0\r\n
        Method: DESCRIBE
        URL: rtsp://x.x.x.x:554/stream2
    CSeq: 4\r\n
    Authorization: Digest username="admin", realm="TP-LINK IP-Camera", nonce="f496da2702679a4d5b29235e72cd29b1", uri="rtsp://x.x.x.x:554/stream2", response="84bffad0b254d5af9d9afbaeb4bc85bb"\r\n
    User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)\r\n
    Accept: application/sdp\r\n
    \r\n

Response: RTSP/1.0 200 OK\r\n
pinocc01 commented 4 months ago

after reboot os the bug disappear