完善 test 例子

This commit is contained in:
PioLing 2024-05-17 14:19:34 +08:00
parent b574e5e202
commit 61caf03732
3 changed files with 6 additions and 0 deletions

View File

@ -222,6 +222,8 @@ int main(int argc, char *argv[]) {
option.enable_fmp4 = false;
option.enable_hls = false;
option.enable_mp4 = false;
option.enable_hls_fmp4 = false;
option.modify_stamp = (int)ProtocolOption::kModifyStampRelative;
//添加拉流代理
auto proxy = std::make_shared<PlayerProxy>(DEFAULT_VHOST, "app", std::to_string(i), option, -1, nullptr, 1);

View File

@ -136,6 +136,8 @@ int main(int argc, char *argv[]) {
option.enable_fmp4 = false;
option.enable_hls = false;
option.enable_mp4 = false;
option.enable_hls_fmp4 = false;
for (auto i = 0; i < proxy_count; ++i) {
auto stream = to_string(i);
PlayerProxy::Ptr player(new PlayerProxy(DEFAULT_VHOST, "live", stream, option));

View File

@ -145,6 +145,8 @@ int main(int argc, char *argv[]) {
ProtocolOption option;
option.enable_hls = false;
option.enable_mp4 = false;
option.enable_fmp4 = false;
option.enable_hls_fmp4 = false;
//添加拉流代理
auto proxy = std::make_shared<PlayerProxy>(DEFAULT_VHOST, "app", "test", option);