优化rtsp播放器代码,支持md5认证

This commit is contained in:
xiongziliang
2018-07-02 15:43:37 +08:00
parent 58b58418d6
commit bca084d080
6 changed files with 293 additions and 212 deletions

View File

@@ -51,7 +51,18 @@ public:
RTP_MULTICAST = 2,
} eRtpType;
static Ptr createPlayer(const char* strUrl);
//指定网卡ip
static const char kNetAdapter[];
//设置rtp传输类型可选项有0(tcp默认)、1(udp)、2(组播)
//设置方法:player[PlayerBase::kRtpType] = 0/1/2;
static const char kRtpType[];
//rtsp认证用户名
static const char kRtspUser[];
//rtsp认证用用户密码可以是明文也可以是md5,md5密码生成方式 md5(username:realm:password)
static const char kRtspPwd[];
//rtsp认证用用户密码是否为md5
static const char kRtspPwdIsMD5[];
PlayerBase(){};
virtual ~PlayerBase(){};