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 IceCandidate | A network path one side found to itself, to be tried by the other side. |
class IceServer | A STUN or TURN server a PeerConnection may use to find a path to the other side. |
class LocalMedia | The camera and microphone this device opened with WebRtc.openUserMedia(boolean, boolean, boolean). |
class MediaTrack | One stream of audio or video: the local camera or microphone, or what arrives from the other side. |
class PeerConnection | One end of a call: the media this device sends, what it receives, and the network path between the two. |
class PeerConnectionConfig | How a PeerConnection looks for a path to the other side. |
class SessionDescription | One side’s description of a session – the codecs, the media and the transport keys – in SDP. |
class VideoView | Draws a video track: the local camera’s preview or the other side’s picture. |
class WebRtc | Real-time audio and video between two devices: the entry point of the package. |