RTP (real-time transport protocol) is generally less of a separate use, and it typically runs with other protocols. For example, RTSP (real-time Streaming protocol) it contains both the RTP,RTCP and the RTSP protocol inside. However, in some systems with very few system resources, the independent use of RTP protocol becomes more and more important. The RTP protocol is generally not very complex, but if each flag bit requires the user to parse it manually, then using the RTP protocol is very complex. Jrtplib is a C + + library that encapsulates the interfaces required for RTP protocol operations, making the RTP protocol easier to operate.
Compared with live555, the Jrtplib library is very small and suitable for embedded devices with small system resources. The RTP and RTCP protocols need to be understood before learning jrtplib. As for the specific definition of their agreement, there are a lot of information on the Internet, you can also directly read the agreement documents, my previous blog has also reproduced some self-think better RTP and RTCP protocol introduction. In real-world applications, we may not be transmitting to peers, or may be multicast or broadcast data, so this will involve the use of multicast and broadcast in the network.
specific use of RTP and RTCP
Write your own RTP server-transport TS streams with RTP protocol
Implementation of RTP real-time packaging to send the video files in Linux
RTP RTCP client receives media data in RTSP
Multicast and broadcast in Linux network programming
Linux Network programming: Multicast (multicast) programming
Linux Network programming: Broadcast programming
specific usage examples of jrtplib
The simplest Jrtplib transceiver data instance
Linux calls Jrtplib for unicast, multicast, broadcast
Linux uses Jrtplib to send and receive video files
When testing, you can use VLC or mplayer streaming player to build a streaming server, or you can use them to receive RTP,RTSP and other streaming media.