uvgrtp-base/examples
Aaro Altonen 3525ee0e3e Fix SRTP example with user-managed keys 2020-04-30 01:49:45 +03:00
..
README.md Add example code for context configuration 2020-04-28 11:18:13 +03:00
binding.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
configuration.cc Add example code for context configuration 2020-04-28 11:18:13 +03:00
deallocation_1.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
deallocation_2.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
deallocation_3.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
example.pro Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
prepare.bat Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
receiving_hook.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
receiving_poll.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
rtcp_hook.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
rtcp_poll.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
sending.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
sending_fragmented.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
sending_generic.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
srtp_user.cc Fix SRTP example with user-managed keys 2020-04-30 01:49:45 +03:00
srtp_zrtp.cc Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00

README.md

uvgRTP example codes

Instructions for Windows

  1. Run prepare.bat in this directory to prepare testing environment for uvgRTP
    • The script creates lib/ and include/ directories to project root directory
  2. Build uvgRTP using QtCreator
  3. When uvgRTP has been built, copy the libuvgrtp.a from the Qt build directory to lib/ created by the script
  4. Open the example.pro and build & run it
    • Make sure the Qt build directory for example.pro is located in the same directory as lib/ and include/ (projects root directory) or tweak the include/lib paths accordingly

Instructions for Linux

sudo make --directory=.. all install
g++ sending.cc -luvgrtp -lpthread && ./a.out

Available examples

We provide several simple and thoroughly commented examples on how to use uvgRTP.

How to create a simple RTP sender

How to use fragmented input with uvgRTP HEVC slices

How to fragment generic media types

How to configure uvgRTP to send high-quality video

How to create a simple RTP receiver (hooking)

NOTE: The hook should not be used for media processing. It should be rather used as interface between application and library where the frame handout happens.

How to create a simple RTP receiver (polling)

How to create an RTCP instance (polling)

How to create an RTCP instance (hoooking)

Memory ownership/deallocation

If you have not enabled the system call dispatcher, you don't need to worry about these

Method 1, unique_ptr

Method 2, copying

Method 3, deallocation hook