https://github.com/ratson/cordova-webrtc
https://github.com/ratson/cordova-webrtc
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ratson/cordova-webrtc
- Owner: ratson
- Created: 2021-07-24T16:01:14.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-26T06:19:00.000Z (over 4 years ago)
- Last Synced: 2025-07-03T19:01:02.534Z (11 months ago)
- Language: Swift
- Size: 48.8 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cordova-webrtc
## Installation
```sh
cordova plugin add cordova-webrtc --save
```
update `config.xml` with the following content,
```xml
```
## Status
This is an expiremental Cordova plugin for using WebRTC.
Android has good support for using WebRTC in webview, by setting the neccessary permissions through this plugin, it works flawlessly.
Recent iOS webview provides some support for WebRTC, but the integration is not good, especially when use with media playback or in background. This plugin provides an `agent` API to workaround it. The idea is to establish a peer connection between native code and webview for `getUserMedia()`, then forward the stream to other peer connections.
Some example usage could be found in [cordova-webrtc-samples](https://github.com/ratson/cordova-webrtc-samples) or [cordova-webrtc-lab](https://github.com/ratson/cordova-webrtc-lab). Feel free to opne new issues if there is any questions.