Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

package com.codename1.webrtc

Real-time audio and video calls between devices: WebRTC.

WebRtc opens the camera and microphone and creates a PeerConnection; a VideoView draws a video track. The app carries the SessionDescription and IceCandidate values between the two sides over its own signalling. Ringing, the system call screen and waking a device for an incoming call are com.codename1.call, which a calling app uses beside this package.

Referencing this package is what adds the native WebRTC library to an Android or iOS build, along with the camera and microphone permissions; an app that does not use it pays for none of that.

Types

class IceCandidateA network path one side found to itself, to be tried by the other side.
class IceServerA STUN or TURN server a PeerConnection may use to find a path to the other side.
class LocalMediaThe camera and microphone this device opened with WebRtc.openUserMedia(boolean, boolean, boolean).
class MediaTrackOne stream of audio or video: the local camera or microphone, or what arrives from the other side.
class PeerConnectionOne end of a call: the media this device sends, what it receives, and the network path between the two.
class PeerConnectionConfigHow a PeerConnection looks for a path to the other side.
class SessionDescriptionOne side’s description of a session – the codecs, the media and the transport keys – in SDP.
class VideoViewDraws a video track: the local camera’s preview or the other side’s picture.
class WebRtcReal-time audio and video between two devices: the entry point of the package.