mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-12 09:00:53 +08:00
转协议选项抽象为ProtocolOption对象
This commit is contained in:
@@ -132,9 +132,12 @@ int main(int argc, char *argv[]) {
|
||||
mINI::Instance()[General::kFMP4Demand] = demand;
|
||||
|
||||
map<string, PlayerProxy::Ptr> proxyMap;
|
||||
ProtocolOption option;
|
||||
option.enable_hls = false;
|
||||
option.enable_mp4 = false;
|
||||
for (auto i = 0; i < proxy_count; ++i) {
|
||||
auto stream = to_string(i);
|
||||
PlayerProxy::Ptr player(new PlayerProxy(DEFAULT_VHOST, "live", stream, false, false));
|
||||
PlayerProxy::Ptr player(new PlayerProxy(DEFAULT_VHOST, "live", stream, option));
|
||||
(*player)[Client::kRtpType] = rtp_type;
|
||||
player->play(in_url);
|
||||
proxyMap.emplace(stream, player);
|
||||
|
||||
Reference in New Issue
Block a user