完善 test 例子

This commit is contained in:
PioLing 2024-05-17 14:07:36 +08:00
parent 502e611d14
commit 06f9c26832
2 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,7 @@ int main(int argc, char *argv[]) {
map<string, PlayerProxy::Ptr> proxyMap;
ProtocolOption option;
option.enable_fmp4 = false;
option.enable_hls = false;
option.enable_mp4 = false;
for (auto i = 0; i < proxy_count; ++i) {

View File

@ -77,8 +77,10 @@ int domain(const string &playUrl, const string &pushUrl) {
MediaInfo info(pushUrl);
ProtocolOption option;
option.enable_fmp4 = false;
option.enable_hls = false;
option.enable_mp4 = false;
PlayerProxy::Ptr player(new PlayerProxy(DEFAULT_VHOST, "app", "stream", option, -1, poller));
//可以指定rtsp拉流方式支持tcp和udp方式默认tcp
// (*player)[Client::kRtpType] = Rtsp::RTP_UDP;