|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| binding.cc | ||
| configuration.cc | ||
| deallocation_1.cc | ||
| deallocation_2.cc | ||
| deallocation_3.cc | ||
| example.pro | ||
| prepare.bat | ||
| receiving_hook.cc | ||
| receiving_poll.cc | ||
| rtcp_hook.cc | ||
| rtcp_poll.cc | ||
| sending.cc | ||
| sending_fragmented.cc | ||
| sending_generic.cc | ||
| srtp_user.cc | ||
| srtp_zrtp.cc | ||
README.md
uvgRTP example codes
Instructions for Windows
- Run prepare.bat in this directory to prepare testing environment for uvgRTP
- The script creates lib/ and include/ directories to project root directory
- Build uvgRTP using QtCreator
- When uvgRTP has been built, copy the libuvgrtp.a from the Qt build directory to lib/ created by the script
- 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