Red5 Documentation

Red5 Core SDK Examples

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
    make
  8. Execute the basic example

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

For Windows

substitute your username for <user>.

  1. Install dependencies:
  2. Make a local directory

    mkdir c:\Users\<user>\Red5Core
  3. Download the Red5 Pro Core SDK distribution and save to C:\Users\<user>\Red5Core\<distribution>.zip
  4. Unzip the distribution. This will create C:\Users\<user>\Red5Core\<distribution>\cmake, docs, and other directories.
  5. Make a binary directory

    mkdir c:\Users\<user>\Red5Core\<distribution>\build
  6. Run cmake-gui
  7. Set Where is the source code to C:\Users\<user>\Red5Core\<distribution>\examples
  8. Set Where to build the binaries to C:\Users\<user>\Red5Core\<distribution>\build
  9. Click Configure
  10. Click Generate
  11. Click Open Project and select the Visual Studio distribution you installed earlier.
  12. Inside the Visual Studio project, select Release from the Solution Configurations dropdown.
  13. Right-click inside Search Solution Explorer on ALL_BUILD and select Build
  14. Right-click inside Search Solution Explorer on INSTALL and select Build
  15. Execute the basic example from C:\Users\<user>\Red5Core\<distribution>\build\r5core_example_basic