完善 test 例子
This commit is contained in:
parent
b574e5e202
commit
61caf03732
|
|
@ -222,6 +222,8 @@ int main(int argc, char *argv[]) {
|
||||||
option.enable_fmp4 = false;
|
option.enable_fmp4 = false;
|
||||||
option.enable_hls = false;
|
option.enable_hls = false;
|
||||||
option.enable_mp4 = false;
|
option.enable_mp4 = false;
|
||||||
|
option.enable_hls_fmp4 = false;
|
||||||
|
|
||||||
option.modify_stamp = (int)ProtocolOption::kModifyStampRelative;
|
option.modify_stamp = (int)ProtocolOption::kModifyStampRelative;
|
||||||
//添加拉流代理
|
//添加拉流代理
|
||||||
auto proxy = std::make_shared<PlayerProxy>(DEFAULT_VHOST, "app", std::to_string(i), option, -1, nullptr, 1);
|
auto proxy = std::make_shared<PlayerProxy>(DEFAULT_VHOST, "app", std::to_string(i), option, -1, nullptr, 1);
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,8 @@ int main(int argc, char *argv[]) {
|
||||||
option.enable_fmp4 = false;
|
option.enable_fmp4 = false;
|
||||||
option.enable_hls = false;
|
option.enable_hls = false;
|
||||||
option.enable_mp4 = false;
|
option.enable_mp4 = false;
|
||||||
|
option.enable_hls_fmp4 = false;
|
||||||
|
|
||||||
for (auto i = 0; i < proxy_count; ++i) {
|
for (auto i = 0; i < proxy_count; ++i) {
|
||||||
auto stream = to_string(i);
|
auto stream = to_string(i);
|
||||||
PlayerProxy::Ptr player(new PlayerProxy(DEFAULT_VHOST, "live", stream, option));
|
PlayerProxy::Ptr player(new PlayerProxy(DEFAULT_VHOST, "live", stream, option));
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,8 @@ int main(int argc, char *argv[]) {
|
||||||
ProtocolOption option;
|
ProtocolOption option;
|
||||||
option.enable_hls = false;
|
option.enable_hls = false;
|
||||||
option.enable_mp4 = 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);
|
auto proxy = std::make_shared<PlayerProxy>(DEFAULT_VHOST, "app", "test", option);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue