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

public final class LocalMedia

  1. Object
  2. LocalMedia
The camera and microphone this device opened with WebRtc.openUserMedia(boolean, boolean, boolean).

Methods

public MediaTrack getAudio()The microphone, or null when none was asked for.
public MediaTrack getVideo()The camera, or null when none was asked for.
public void release()Stops both.

Inherited methods

Method details

getAudio

public MediaTrack getAudio()
The microphone, or null when none was asked for.

getVideo

public MediaTrack getVideo()
The camera, or null when none was asked for.

release

public void release()
Stops both.