首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > 多媒体 >

LIVE555 Media Server传输协议的取舍

2013-01-09 
LIVE555 Media Server传输协议的选择我用预编译的LIVE555 Media Server做了一下测试,用VLC访问时,抓包发现

LIVE555 Media Server传输协议的选择
我用预编译的LIVE555 Media Server做了一下测试,用VLC访问时,抓包发现server用的是RTP over udp;用potplayer访问时,server用的是RTP over tcp。我看了一下LIVE555 Media Server网站上的说明,“By default, the server transmits its streams as RTP/UDP packets. If requested by the RTSP client, the server will stream its RTP (and RTCP) packets over TCP. (This can be useful for clients that are behind a firewall.)”。我不大明白何谓RTSP client,server如何判断是不是RTSP client。
[解决办法]
rtsp client的话我个人认为就是使用了rtsp协议的客户端。
比如live555的例子中自带的openRTSP或者testRTSPClient都是属于rtsp client。
server如何判断?
rtsp client连接服务器时会遵循一定的协议,比如会首先发送option请求服务器支持的命令,然后发送请求sdp描述符的请求。具体可以去网上查一下。

热点排行