https://github.com/godotengine/webrtc-native
The official GDNative WebRTC implementation for non-html exports.
https://github.com/godotengine/webrtc-native
Last synced: 3 months ago
JSON representation
The official GDNative WebRTC implementation for non-html exports.
- Host: GitHub
- URL: https://github.com/godotengine/webrtc-native
- Owner: godotengine
- License: mit
- Created: 2018-08-11T14:51:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-26T16:56:44.000Z (9 months ago)
- Last Synced: 2024-10-29T14:31:42.396Z (9 months ago)
- Language: C++
- Size: 218 KB
- Stars: 212
- Watchers: 13
- Forks: 35
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GDNative WebRTC plugin for Godot
## Getting Started
| **Download latest binary version** | [**GitHub**](https://github.com/godotengine/webrtc-native/releases) |
| --- | --- |### Compiling
Clone this repository with the following command to checkout all the dependencies: [godot-cpp](https://github.com/godotengine/godot-cpp), [openssl](https://www.openssl.org/) and [libdatachannel](https://github.com/paullouisageneau/libdatachannel) (and sub-dependencies).
```
$ git clone --recurse-submodules https://github.com/godotengine/webrtc-native.git
```If you already checked out the branch use the following commands to update the dependencies:
```
$ git submodule update --init --recursive
```### Compiling the extension.
To build the GDExtension version of the plugin (Godot 4.1+) run the following command from the `webrtc-native` folder:
```
$ scons platform=
```This will build all the required dependencies into a single shared library.
To build the "legacy" GDExtension version of the plugin (Godot 4.0) run the following command instead:
```
$ scons platform= godot_version=4.0
```To build the GDNative version of the plugin (Godot 3.x) run the following command instead:
```
$ scons platform= godot_version=3
```> Replace `` with either `windows`, `linux`, `osx`, `android`, or `ios`.
> Include `target=release` or `target=debug` for release or debug build (default is `debug`).
The resulting library and associated `tres` or `gdextension` will be created in `bin/[extension|gdnative]/webrtc[_debug]` depending on the `target` and `godot_version`.
You simply need to copy that folder to the root folder of your project. Note that you will have to build the library for all the desired export platforms.
### License
The `webrtc-native` plugin is licensed under the MIT license (see [LICENSE](https://github.com/godotengine/webrtc-native/blob/master/LICENSE)), while `libdatachannel` and its dependencies are licensed under other permissive open source licences. Please see [`thirdparty/README.md`](thirdparty/README.md) for more informations.