JvmMediaDevices
JVM implementation of MediaTrackFactory based dev.onvoid.webrtc.media.
Parameters
The factory for creating audio-related components. Defaults to DefaultAudioFactory.
The factory for creating video capture devices. Defaults to CameraVideoFactory.
Constructors
Properties
The audio device module responsible for audio input/output operations. This is provided by the configured audioFactory.
The peer connection factory used for creating WebRTC components. This is provided by the configured audioFactory.
Functions
Ensures the audio recording device is started when the first audio track is created and stopped when the close() method is called, though you can stop it manually by calling audioModule.stopRecording(). Audio playout initialization should be done separately.
Creates a video capturer using the configured video factory, starts video capture, and creates a video track. The video capturer lifecycle is automatically managed - it will be stopped and closed when the track is disposed.