{"id":13607875,"url":"https://github.com/Monibuca/plugin-webrtc","last_synced_at":"2025-04-12T14:31:23.205Z","repository":{"id":45079671,"uuid":"266060527","full_name":"Monibuca/plugin-webrtc","owner":"Monibuca","description":"webrtc plugin for monibuca","archived":false,"fork":false,"pushed_at":"2024-07-09T12:01:24.000Z","size":386,"stargazers_count":56,"open_issues_count":10,"forks_count":36,"subscribers_count":4,"default_branch":"v4","last_synced_at":"2025-04-02T16:48:59.080Z","etag":null,"topics":["webrtc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Monibuca.png","metadata":{"files":{"readme":"README.en.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-05-22T08:36:17.000Z","updated_at":"2024-12-12T16:39:49.000Z","dependencies_parsed_at":"2023-09-28T06:03:58.612Z","dependency_job_id":"5af98578-9852-4dfd-b429-b9ce189e2467","html_url":"https://github.com/Monibuca/plugin-webrtc","commit_stats":null,"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-webrtc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-webrtc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-webrtc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-webrtc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monibuca","download_url":"https://codeload.github.com/Monibuca/plugin-webrtc/tar.gz/refs/heads/v4","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581146,"owners_count":21128109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["webrtc"],"created_at":"2024-08-01T19:01:22.404Z","updated_at":"2025-04-12T14:31:22.864Z","avatar_url":"https://github.com/Monibuca.png","language":"Go","funding_links":[],"categories":["Media API"],"sub_categories":[],"readme":"_[简体中文](https://github.com/Monibuca/plugin-webrtc) | English_\n# WebRTC Plugin\n\nThis plugin provides the functionality to stream videos to Monibuca through a web page and to play streams from Monibuca using WebRTC technology. It follows the WHIP specification.\n\n## Plugin URL\n\nhttps://github.com/Monibuca/plugin-webrtc\n\n## Plugin Import\n\n```go\n    import (  _ \"m7s.live/plugin/webrtc/v4\" )\n```\n\n## Default Configuration\n\n```yaml\nwebrtc:\n  iceservers: []\n  publicip: [] # can be an array or a single string (automatically converted to an array)\n  port: tcp:9000 # can be a range of ports like udp:8000-9000 or a single port like udp:9000\n  pli: 2s # 2s\n```\n\n### ICE Server Configuration Format\n\n```yaml\nwebrtc:\n  iceservers:\n    - urls: \n        - stun:stun.l.google.com:19302\n        - turn:turn.example.org\n      username: user\n      credential: pass\n```\n\n### Configuration for Local Testing\n\nIf testing locally, no change in configuration is required. However, if you are accessing it remotely, then you need to configure the public IP.\n\n## Basic Principle\n\nThe exchange of SDP messages between the browser and Monibuca takes place and RTP packets are read or sent to stream videos.\n\n## API\n\n### Play address\n`/webrtc/play/[streamPath]`\n\nBody: `SDP`\n\nContent-Type: `application/sdp`\n\nResponse Body: `SDP`\n\n### Push address\n\n`/webrtc/push/[streamPath]`\n\nBody: `SDP`\n\nContent-Type: `application/sdp`\n\nResponse Body: `SDP`\n\n### Push Test Page\n\n`/webrtc/test/publish`\n- `?streamPath=xxx` The streamPath to publish, default is `live/webrtc`\n- you can add other query parameters to the URL\n\n### ScreenShare Test Page\n\n`/webrtc/test/screenshare`\n- `?streamPath=xxx` The streamPath to publish, default is `live/webrtc`\n- you can add other query parameters to the URL\n\n### Play Test Page\n\n`/webrtc/test/subscribe`\n- `?streamPath=xxx` The streamPath to play, default is `live/webrtc`\n- you can add other query parameters to the URL\n## WHIP\n\nWebRTC-HTTP ingestion protocol\nA specification for the exchange of SDP messages between WebRTC clients.\n\n[WHIP ietf](https://datatracker.ietf.org/doc/html/draft-ietf-wish-whip-02)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMonibuca%2Fplugin-webrtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMonibuca%2Fplugin-webrtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMonibuca%2Fplugin-webrtc/lists"}