|
|
4 月之前 | |
|---|---|---|
| .. | ||
| samples | 4 年之前 | |
| uwp | 4 年之前 | |
| ArgParser.cpp | 2 年之前 | |
| ArgParser.hpp | 2 年之前 | |
| CMakeLists.txt | 4 月之前 | |
| README.md | 4 年之前 | |
| client.js | 2 年之前 | |
| dispatchqueue.cpp | 2 年之前 | |
| dispatchqueue.hpp | 2 年之前 | |
| fileparser.cpp | 2 年之前 | |
| fileparser.hpp | 2 年之前 | |
| h264fileparser.cpp | 1 年之前 | |
| h264fileparser.hpp | 2 年之前 | |
| helpers.cpp | 1 年之前 | |
| helpers.hpp | 2 年之前 | |
| index.html | 3 年之前 | |
| main.cpp | 8 月之前 | |
| opusfileparser.cpp | 2 年之前 | |
| opusfileparser.hpp | 2 年之前 | |
| stream.cpp | 2 年之前 | |
| stream.hpp | 2 年之前 | |
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. ↩