Red5 Documentation

Core SDK Examples – Overview

The Red5 Pro Core SDK can be used to develop native desktop applications for MacOS, Windows, and Linux.

The following documents contain details about the public examples of how to integrate various supported features into your application.

Building the Examples

For Linux/MacOS

  1. Install dependencies

    sudo apt-get install g++ make cmake unzip
  2. Make local directory

    mkdir ~/Red5Core
  3. Download the Red5 Pro Core SDK distribution and save to ~/Red5Core

  4. Unzip

    cd ~/Red5Core
    unzip <distribution>.zip
  5. Set the environment variable for CMake

    export CMAKE_PREFIX_PATH=~Red5Core/<distribution>/cmake
  6. Create build files

    cd ~/Red5Core/<distribution>/examples
    cmake .
  7. Build examples

    cd ~/Red5Core/<distribution>/examples
  8. Execute the basic example

    cd ~/Red5Core/<distribution>/examples/basic   ./r5sdk_example_basic

    For Windows

    substitute your username for <user>.

  9. Install dependencies:

  10. Make a local directory

    mkdir c:Users<user>Red5Core
  11. Download the Red5 Pro Core SDK distribution and save to C:\Users\<user>\Red5Core\<distribution>.zip

  12. Unzip the distribution. This will create C:\Users\<user>\Red5Core\<distribution>\cmake, docs, and other directories.

  13. Make a binary directory

    mkdir c:Users<user>Red5Core<distribution>build
  14. Run cmake-gui

  15. Set Where is the source code to C:\Users\<user>\Red5Core\<distribution>\examples

  16. Set Where to build the binaries to C:\Users\<user>\Red5Core\<distribution>\build

  17. Click Configure

  18. Click Generate

  19. Click Open Project and select the Visual Studio distribution you installed earlier.

  20. Inside the Visual Studio project, select Release from the Solution Configurations dropdown.

  21. Right-click inside Search Solution Explorer on ALL_BUILD and select Build

  22. Right-click inside Search Solution Explorer on INSTALL and select Build

  23. Execute the basic example from C:\Users\<user>\Red5Core\<distribution>\build\r5core_example_basic