mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-26 03:42:21 +08:00
转协议选项抽象为ProtocolOption对象
This commit is contained in:
@@ -25,8 +25,7 @@ public:
|
||||
//如果retry_count<0,则一直重试播放;否则重试retry_count次数
|
||||
//默认一直重试
|
||||
PlayerProxy(const std::string &vhost, const std::string &app, const std::string &stream_id,
|
||||
bool enable_hls = true, bool enable_mp4 = false,
|
||||
int retry_count = -1, const toolkit::EventPoller::Ptr &poller = nullptr);
|
||||
const ProtocolOption &option, int retry_count = -1, const toolkit::EventPoller::Ptr &poller = nullptr);
|
||||
|
||||
~PlayerProxy() override;
|
||||
|
||||
@@ -66,8 +65,7 @@ private:
|
||||
void setDirectProxy();
|
||||
|
||||
private:
|
||||
bool _enable_hls;
|
||||
bool _enable_mp4;
|
||||
ProtocolOption _option;
|
||||
int _retry_count;
|
||||
std::string _vhost;
|
||||
std::string _app;
|
||||
|
||||
Reference in New Issue
Block a user