alexeyvasilyev / rtsp-client-android

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

Fix authentication for keep-alive #46

Closed dstukalov closed 2 years ago

dstukalov commented 2 years ago

update authToken for keep-alives and teardown; otherwise, the server stops sending rtp traffic after keep-alive fails authentication

tested on hikvision DS-7608NXI-I2/8P/4S (firmware V4.1.15 build 190305)

OctavianIonel commented 2 years ago

update authToken for keep-alives and teardown; otherwise, the server stops sending rtp traffic after keep-alive fails authentication

tested on hikvision DS-7608NXI-I2/8P/4S (firmware V4.1.15 build 190305)

@alexeyvasilyev what exactly is doing this change? Does this help for reconnection?

dstukalov commented 2 years ago

this change allows to send correct "Authorization" parameter when sending keep-alives (either via GET_PARAMETER or OPTIONS command) and TEARDOWN command