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.
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:
-
Create Java interfaces for all WebRTC interfaces. Complete
-
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:
Eventually we will support iOS, Android, Javascript, Mac Desktop, Windows Desktop, and Simulator.
Currently (September 27, 2020) it works on:
-
Android
-
Simulator (requires CEF to be installed)
-
Javascript (Desktop and Android Chrome)
-
iOS
-
Copy webrtc.cn1lib into your project’s "lib" directory.
-
Copy CN1JSON.cn1lib into your project’s "lib" directory.
-
Refresh Cn1libs
-
Javascript Build - Works in modern desktop browsers and also on Android Chrome
git clone https://github.com/shannah/CN1WebRTC
cd CN1WebRTC
sh setup.sh
Open project in NetBeans