|
|
před 1 rokem | |
|---|---|---|
| .. | ||
| samples | před 5 roky | |
| uwp | před 4 roky | |
| ArgParser.cpp | před 3 roky | |
| ArgParser.hpp | před 3 roky | |
| CMakeLists.txt | před 2 roky | |
| README.md | před 4 roky | |
| client.js | před 2 roky | |
| dispatchqueue.cpp | před 3 roky | |
| dispatchqueue.hpp | před 2 roky | |
| fileparser.cpp | před 2 roky | |
| fileparser.hpp | před 3 roky | |
| h264fileparser.cpp | před 1 rokem | |
| h264fileparser.hpp | před 3 roky | |
| helpers.cpp | před 1 rokem | |
| helpers.hpp | před 3 roky | |
| index.html | před 3 roky | |
| main.cpp | před 9 měsíci | |
| opusfileparser.cpp | před 3 roky | |
| opusfileparser.hpp | před 3 roky | |
| stream.cpp | před 3 roky | |
| stream.hpp | před 2 roky | |
This example streams H264 and opus1 samples to the connected browser client.
$ python3 examples/signaling-server-python/signaling-server.py
$ cd examples/streamer
$ python3 -m http.server --bind 127.0.0.1 8080
$ 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.
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. ↩