完善 test 例子
This commit is contained in:
parent
502e611d14
commit
06f9c26832
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue