live555 設置RTP over RTSP(TCP)

live555工程中testprogs做爲一個簡單的rtsp客戶端,默認採用udp進行音視頻數據的傳輸,tcp

若是須要使用tcp進行數據的傳輸,能夠進行以下代碼的修改:ide

testRTSPClient.cpp文件#define REQUEST_STREAMING_OVER_TCP True便可視頻



源代碼server

// By default, we request that the server stream its data using RTP/UDP.it

// If, instead, you want to request that the server stream via RTP-over-TCP, 
class

//change the following to True:test


#define REQUEST_STREAMING_OVER_TCP Truestream


VLC默認播放TCP音視頻流設置以下:udp

去複用器>RTP/RTSP>request

相關文章
相關標籤/搜索