{"id":25495241,"url":"https://github.com/rickstaa/webrtc-python-server-cpp-client-example","last_synced_at":"2026-02-21T01:32:10.835Z","repository":{"id":275774168,"uuid":"927149758","full_name":"rickstaa/webrtc-python-server-cpp-client-example","owner":"rickstaa","description":"This repository contains my test code for connecting an C++ WebRTC client to an python WebRTC server.","archived":false,"fork":false,"pushed_at":"2025-02-17T14:08:43.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-18T20:29:30.341Z","etag":null,"topics":["cpp","python","webrtc"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rickstaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-04T13:43:39.000Z","updated_at":"2025-03-07T00:40:24.000Z","dependencies_parsed_at":"2025-02-04T14:42:59.712Z","dependency_job_id":"e8ad108d-6cf7-4575-a354-dda2a8dc390c","html_url":"https://github.com/rickstaa/webrtc-python-server-cpp-client-example","commit_stats":null,"previous_names":["rickstaa/comfystream-webrtc-cpp-test","rickstaa/webrtc-python-server-cpp-client-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rickstaa/webrtc-python-server-cpp-client-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Fwebrtc-python-server-cpp-client-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Fwebrtc-python-server-cpp-client-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Fwebrtc-python-server-cpp-client-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Fwebrtc-python-server-cpp-client-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickstaa","download_url":"https://codeload.github.com/rickstaa/webrtc-python-server-cpp-client-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Fwebrtc-python-server-cpp-client-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29670125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"ssl_error","status_checked_at":"2026-02-20T23:52:33.807Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","python","webrtc"],"created_at":"2025-02-19T00:25:11.740Z","updated_at":"2026-02-21T01:32:10.812Z","avatar_url":"https://github.com/rickstaa.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ComfyStream WebRTC C++ Client  \n\nThis repository contains my test code for connecting an C++ WebRTC client to an python WebRTC server.\n\n\n## Prerequisites\n\n- Python 3.11\n- Conda\n- CMake\n- Build Essentials (for Linux)\n- `nlohmann_json`\n- [LibDataChannel](https://github.com/paullouisageneau/libdatachannel)\n- `OpenCV`\n- `FFmpeg`\n\n## Testing Instructions  \n\n1. **Set up a Python environment and install dependencies:**  \n\n   ```bash\n   conda create -n webrtc_test python=3.11\n   conda activate webrtc_test\n   pip install -r requirements.txt\n   ```\n\n2. **Start the Python WebRTC server:**  \n\n   ```bash\n   python3 webrtc_server.py\n   ```\n\n3. **Verify WebRTC functionality** by opening `index.html` in a browser and ensuring the JavaScript example runs without issues.  \n\n4. **Close the browser and restart the WebRTC server:**  \n\n   ```bash\n   python3 webrtc_server.py\n   ```\n\n5. **Install the Libdatachannels library:** Follow the instructions from the [LibDataChannel GitHub repository](https://github.com/paullouisageneau/libdatachannel) to install LibDataChannel.\n\n6. **Install C++ Dependencies:**\n\n    ```bash\n    sudo apt-get install nlohmann-json3-dev\n    sudo apt-get install libopencv-dev\n    sudo apt-get install libavcodec-dev libavformat-dev libavutil-dev libswscale-dev\n    sudo apt install build-essential\n    ```\n\n7. **Compile the C++ client** by installing the required build tools and using CMake:  \n\n   ```bash\n   cmake .\n   cmake --build .\n   ```\n\n8. **Run the C++ client:**  \n\n   ```bash\n   ./webrtc-client\n   ```\n  \n9.  **Observe that C++ client communication is broken:** Despite data being sent, the `recv` method of `MediaStreamTrack` is never triggered.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickstaa%2Fwebrtc-python-server-cpp-client-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickstaa%2Fwebrtc-python-server-cpp-client-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickstaa%2Fwebrtc-python-server-cpp-client-example/lists"}