mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-08 23:10:04 +08:00
protected virtual bool sendRtspResponse(...)
This commit is contained in:
@@ -72,6 +72,22 @@ protected:
|
||||
//收到RTCP包回调
|
||||
virtual void onRtcpPacket(int track_idx, SdpTrack::Ptr &track, const char *data, size_t len);
|
||||
|
||||
//回复客户端
|
||||
virtual bool sendRtspResponse(const std::string &res_code, const StrCaseMap &header = StrCaseMap(), const std::string &sdp = "", const char *protocol = "RTSP/1.0");
|
||||
//url解析后保存的相关信息
|
||||
MediaInfo _media_info;
|
||||
|
||||
////////RTP over udp_multicast////////
|
||||
//共享的rtp组播对象
|
||||
RtpMultiCaster::Ptr _multicaster;
|
||||
|
||||
//Session号
|
||||
std::string _sessionid;
|
||||
|
||||
uint32_t _multicast_ip = 0;
|
||||
uint16_t _multicast_video_port = 0;
|
||||
uint16_t _multicast_audio_port = 0;
|
||||
|
||||
private:
|
||||
//处理options方法,获取服务器能力
|
||||
void handleReq_Options(const Parser &parser);
|
||||
@@ -130,7 +146,6 @@ private:
|
||||
void updateRtcpContext(const RtpPacket::Ptr &rtp);
|
||||
//回复客户端
|
||||
bool sendRtspResponse(const std::string &res_code, const std::initializer_list<std::string> &header, const std::string &sdp = "", const char *protocol = "RTSP/1.0");
|
||||
bool sendRtspResponse(const std::string &res_code, const StrCaseMap &header = StrCaseMap(), const std::string &sdp = "", const char *protocol = "RTSP/1.0");
|
||||
|
||||
//设置socket标志
|
||||
void setSocketFlags();
|
||||
@@ -149,8 +164,6 @@ private:
|
||||
uint64_t _bytes_usage = 0;
|
||||
//ContentBase
|
||||
std::string _content_base;
|
||||
//Session号
|
||||
std::string _sessionid;
|
||||
//记录是否需要rtsp专属鉴权,防止重复触发事件
|
||||
std::string _rtsp_realm;
|
||||
//登录认证
|
||||
@@ -158,8 +171,6 @@ private:
|
||||
//用于判断客户端是否超时
|
||||
toolkit::Ticker _alive_ticker;
|
||||
|
||||
//url解析后保存的相关信息
|
||||
MediaInfo _media_info;
|
||||
//rtsp推流相关绑定的源
|
||||
RtspMediaSourceImp::Ptr _push_src;
|
||||
//推流器所有权
|
||||
@@ -180,9 +191,6 @@ private:
|
||||
toolkit::Socket::Ptr _rtcp_socks[2];
|
||||
//标记是否收到播放的udp打洞包,收到播放的udp打洞包后才能知道其外网udp端口号
|
||||
std::unordered_set<int> _udp_connected_flags;
|
||||
////////RTP over udp_multicast////////
|
||||
//共享的rtp组播对象
|
||||
RtpMultiCaster::Ptr _multicaster;
|
||||
////////RTSP over HTTP ////////
|
||||
//quicktime 请求rtsp会产生两次tcp连接,
|
||||
//一次发送 get 一次发送post,需要通过x-sessioncookie关联起来
|
||||
|
||||
Reference in New Issue
Block a user