Code Monkey home page Code Monkey logo

webrtc-native's Introduction

GDNative WebRTC plugin for Godot

Getting Started

Download latest binary version GitHub

Compiling

Clone this repository with the following command to checkout all the dependencies: godot-cpp, openssl and 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=<your 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=<your platform> godot_version=4.0

To build the GDNative version of the plugin (Godot 3.x) run the following command instead:

$ scons platform=<your platform> godot_version=3

Replace <your platform> 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), while libdatachannel and its dependencies are licensed under other permissive open source licences. Please see thirdparty/README.md for more informations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.