This C++ example uses the Rainway SDK's BYOFB mode and MediaFoundation to stream video from a file.
It accepts all incoming stream requests from clients (such as the Web Demo), and streams the video to them. Try connecting with multiple clients at once!
For more information about Rainway, see our docs. To sign up, visit rainway.com.
See the parent README for detailed build instructions.
cd ..
cmake . -B build
cmake --build build -t video-player-example
# Get your Rainway API key here: https://hub.rainway.com/keys
.\build\bin\Debug\video-player-example.exe pk_live_YourRainwayApiKey C:\path\to\media.mp4