This directory contains a collection of commented and functioning examples that demonstrate the usage of uvgRTP.
Compile the library according to instructions in BUILDING.md. Follow either Visual Studio or Linux compilation instructions below:
Navigate to uvgRTP/build/examples
and open the uvgrtp_examples.sln
with Visual Studio, through which you can build the individual example programs. When building, select the Release x64 version.
The built executable files will be found in uvgRTP/build/examples/Release
Navigate to uvgRTP/build/examples
and compile the programs with the make
command.
How to create a simple RTP sender (Pair with one of the receiver examples)
How to create a simple RTP receiver (hooking)
NOTE: The hook should not be used for extensive media processing. It is meant to be used as an interface between application and library where uvgRTP hands off the RTP frames to an application thread.
How to create a simple RTP receiver (polling)
To demonstrate V3C streaming, uvgRTP comes with example V3C sender and V3C receiver programs, found in uvgRTP/build/examples
. Below are simple step-by-step instructions to run these programs:
- Build the library according to instructions in BUILDING.md. Crypto++ is not needed.
- Build the
v3c_sender
andv3c_receiver
applications according to building instructions on the top of this page. - Download a test sequence from here.
- Place the test sequence in uvgRTP/build/examples/Release
- Start the
v3c_receiver
program with./v3c_receiver uvgRTP_example_sequence_longdress.vpcc
. If you have changed the filename, modify the command accordingly. - Start the
v3c_sender
program with./v3c_sender uvgRTP_example_sequence_longdress.vpcc
. The program will parse the test sequence for transmission and send it to the receiver. - The
v3c_receiver
will print information on the reception and reconstruction of the V3C bitstream. It will also check the received sequence for any differences to the original one.
How to use RTCP instance (hooking)
Make sure you have checked the build instructions if you want to build the encryption examples with Visual Studio.
How to use multi-stream SRTP with ZRTP
How to use SRTP with user-managed keys
How to fragment generic media types