Skip to content

A Java/Kotlin WebRTC implementation for all mobile/desktop/web platforms.

License

Notifications You must be signed in to change notification settings

shannah/WebRTC-Java-Mobile

Repository files navigation

Codename One WebRTC Library

A Java/Kotlin WebRTC implementation for cross-platform mobile/desktop/web development with Codename One. This project aims to provide Codename One (Java/Kotlin) implementations for all APIs.

Project Status

Under development. See this issue to follow the progress.

The WebRTC API includes nearly 100 classes. This project aims to provide Codename One (Java/Kotlin) implementations for all APIs. The general process that we are that we are taking is as follows:

  1. Create Java interfaces for all WebRTC interfaces. Complete

  2. Port WebRTC samples one by one, implementing functionalities required for the samples to work, and fixing bugs as they appear. In progress

So far we have ported the following samples:

Platform Support

Eventually we will support iOS, Android, Javascript, Mac Desktop, Windows Desktop, and Simulator.

Currently (September 27, 2020) it works on:

  1. Android

  2. Simulator (requires CEF to be installed)

  3. Javascript (Desktop and Android Chrome)

  4. iOS

Dependencies

  1. CN1JSON.cn1lib

Installation

  1. Copy webrtc.cn1lib into your project’s "lib" directory.

  2. Copy CN1JSON.cn1lib into your project’s "lib" directory.

  3. Refresh Cn1libs

Demo

  1. Javascript Build - Works in modern desktop browsers and also on Android Chrome

  2. Android APK

Documentation

Building From Source

git clone https://github.com/shannah/CN1WebRTC
cd CN1WebRTC
sh setup.sh

Open project in NetBeans