Paul-Louis Ageneau f555a6935d CMake: Fix deprecation warning in examples hai 1 mes
..
samples b39fe51365 Add h264 and opus samples %!s(int64=4) %!d(string=hai) anos
uwp 6b21637dd5 Make examples in /media, /sfu-media, and /streamer work in UWP. %!s(int64=4) %!d(string=hai) anos
ArgParser.cpp a0f3f01bf5 Re-licensed under MPL 2.0 %!s(int64=2) %!d(string=hai) anos
ArgParser.hpp a0f3f01bf5 Re-licensed under MPL 2.0 %!s(int64=2) %!d(string=hai) anos
CMakeLists.txt f555a6935d CMake: Fix deprecation warning in examples hai 1 mes
README.md d1d71b2374 Clarified streamer example Readme %!s(int64=4) %!d(string=hai) anos
client.js bedde2fc15 fix streamer example black screen issue %!s(int64=2) %!d(string=hai) anos
dispatchqueue.cpp a0f3f01bf5 Re-licensed under MPL 2.0 %!s(int64=2) %!d(string=hai) anos
dispatchqueue.hpp f52541661f Fix missing string header in streamer example %!s(int64=2) %!d(string=hai) anos
fileparser.cpp 9cfb6dd34a Fixed hasardous cast in streamer example %!s(int64=2) %!d(string=hai) anos
fileparser.hpp a0f3f01bf5 Re-licensed under MPL 2.0 %!s(int64=2) %!d(string=hai) anos
h264fileparser.cpp 6e45f8fe46 Merge pull request #1157 from ray1422/master hai 1 ano
h264fileparser.hpp a0f3f01bf5 Re-licensed under MPL 2.0 %!s(int64=2) %!d(string=hai) anos
helpers.cpp 5515f71539 Fix compilation warning on MSVC hai 1 ano
helpers.hpp a0f3f01bf5 Re-licensed under MPL 2.0 %!s(int64=2) %!d(string=hai) anos
index.html 335e9bd22a Simplified streamer example client %!s(int64=3) %!d(string=hai) anos
main.cpp 66ac4cb9c1 Updated streamer example hai 5 meses
opusfileparser.cpp a0f3f01bf5 Re-licensed under MPL 2.0 %!s(int64=2) %!d(string=hai) anos
opusfileparser.hpp a0f3f01bf5 Re-licensed under MPL 2.0 %!s(int64=2) %!d(string=hai) anos
stream.cpp a0f3f01bf5 Re-licensed under MPL 2.0 %!s(int64=2) %!d(string=hai) anos
stream.hpp db9841d9e7 Upgrade examples to remove deprecated API calls hai 1 ano

README.md

Streaming H264 and opus

This example streams H264 and opus1 samples to the connected browser client.

Start the example signaling server

$ python3 examples/signaling-server-python/signaling-server.py

Start a web server

$ cd examples/streamer
$ python3 -m http.server --bind 127.0.0.1 8080

Start the streamer

$ cd build/examples/streamer
$ ./streamer

Arguments:

  • -a Directory with OPUS samples (default: ../../../../examples/streamer/samples/opus/).
  • -b Directory with H264 samples (default: ../../../../examples/streamer/samples/h264/).
  • -d Signaling server IP address (default: 127.0.0.1).
  • -p Signaling server port (default: 8000).
  • -v Enable debug logs.
  • -h Print this help and exit.

You can now open the example at the web server URL http://127.0.0.1:8080.

Generating H264 and Opus samples

You can generate H264 and Opus sample with samples/generate_h264.py and samples/generate_opus.py respectively. This require ffmpeg, python3 and kaitaistruct library to be installed. Use -h/--help to learn more about arguments.

1 Opus samples are generated from music downloaded at bensound.