|
|
il y a 4 ans | |
|---|---|---|
| .. | ||
| samples | il y a 4 ans | |
| uwp | il y a 4 ans | |
| ArgParser.cpp | il y a 4 ans | |
| ArgParser.hpp | il y a 4 ans | |
| CMakeLists.txt | il y a 4 ans | |
| README.md | il y a 4 ans | |
| client.js | il y a 4 ans | |
| dispatchqueue.cpp | il y a 4 ans | |
| dispatchqueue.hpp | il y a 4 ans | |
| fileparser.cpp | il y a 4 ans | |
| fileparser.hpp | il y a 4 ans | |
| h264fileparser.cpp | il y a 4 ans | |
| h264fileparser.hpp | il y a 4 ans | |
| helpers.cpp | il y a 4 ans | |
| helpers.hpp | il y a 4 ans | |
| index.html | il y a 4 ans | |
| main.cpp | il y a 4 ans | |
| opusfileparser.cpp | il y a 4 ans | |
| opusfileparser.hpp | il y a 4 ans | |
| stream.cpp | il y a 4 ans | |
| stream.hpp | il y a 4 ans | |
This example streams H264 and opus1 samples to the connected browser client.
$ python3 ../signaling-server-python/signaling-server.py
$ python3 -m http.server --bind 127.0.0.1 8080
Now you can open the demo at http://127.0.0.1:8080.
-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 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. ↩