mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
完善测试程序
This commit is contained in:
parent
702ee9e482
commit
71c9b11eca
@ -91,6 +91,8 @@ int domain(const string &playUrl, const string &pushUrl) {
|
|||||||
//拉一个流,生成一个RtmpMediaSource,源的名称是"app/stream"
|
//拉一个流,生成一个RtmpMediaSource,源的名称是"app/stream"
|
||||||
//你也可以以其他方式生成RtmpMediaSource,比如说MP4文件(请查看test_rtmpPusherMp4.cpp代码)
|
//你也可以以其他方式生成RtmpMediaSource,比如说MP4文件(请查看test_rtmpPusherMp4.cpp代码)
|
||||||
PlayerProxy::Ptr player(new PlayerProxy(DEFAULT_VHOST, "app", "stream",false,false,-1 , poller));
|
PlayerProxy::Ptr player(new PlayerProxy(DEFAULT_VHOST, "app", "stream",false,false,-1 , poller));
|
||||||
|
//可以指定rtsp拉流方式,支持tcp和udp方式,默认tcp
|
||||||
|
// (*player)[Client::kRtpType] = Rtsp::RTP_UDP;
|
||||||
player->play(playUrl.data());
|
player->play(playUrl.data());
|
||||||
|
|
||||||
//监听RtmpMediaSource注册事件,在PlayerProxy播放成功后触发
|
//监听RtmpMediaSource注册事件,在PlayerProxy播放成功后触发
|
||||||
|
Loading…
Reference in New Issue
Block a user