Handling rtsp authentication like ffmpeg, Compatible with some rtsp servers (#4154)

This commit is contained in:
baigao-X
2025-02-19 15:06:11 +08:00
committed by GitHub
parent b66806deb6
commit 12a2f7d491
2 changed files with 6 additions and 5 deletions

View File

@@ -124,7 +124,8 @@ private:
void handleResDESCRIBE(const Parser &parser);
bool handleAuthenticationFailure(const std::string &wwwAuthenticateParamsStr);
void handleResPAUSE(const Parser &parser, int type);
bool handleResponse(const std::string &cmd, const Parser &parser);
using send_method_handler = void (RtspPlayer::*)(void);
bool handleResponse(const std::string &cmd, const Parser &parser, send_method_handler handler);
void sendOptions();
void sendSetup(unsigned int track_idx);