Go to file
Aaro Altonen af605b182d Add short explanation of the read/write API 2019-06-03 13:14:15 +03:00
examples Add example for receiving RTP frames using receive hook 2019-06-03 13:13:43 +03:00
src Store the total size of FUs and the FUs themselves 2019-06-03 12:40:06 +03:00
.gitignore Update gitignore 2019-06-03 11:45:36 +03:00
Makefile Initial commit 2019-03-30 12:21:51 +02:00
README.md Add short explanation of the read/write API 2019-06-03 13:14:15 +03:00
kvzrtp.pro Create Qt project file 2019-06-03 09:35:19 +03:00

README.md

rtplib

Based on Marko Viitanen's fRTPlib

building

Linux

make -j8
sudo make install

you can also use QtCreator to build the library

defines

if you want to disable all prints (the rtp lib is quite verbose), use __RTP_SILENT__

API

Sending data

Sending data is a simple as calling writer->push_frame(), see examples/sending/hevc_sender.cc.

Receiving data

Reading frames can be done using two different ways: polling frames or installing a receive hook.

Polling frames is a blocking operation and a separate thread should be created for it. examples/receiving/recv_example_1.cc shows how the polling approach works.

The second way to receive frames is to install a receive hook and when an RTP frame is received, this receive hook is called. Creating separate thread for reading data is not necessary if the receiving is hooked. examples/receiving/recv_example_2.cc shows how the hooking works.