Builder

class Builder(context: Context)

A builder for WebRtcMediaConnectionFactory.

The created instance of WebRtcMediaConnectionFactory will use DefaultVideoDecoderFactory, DefaultVideoEncoderFactory and either Camera2Enumerator if the OS supports it or Camera1Enumerator otherwise if corresponding methods were not used during before calling build.

Parameters

context

an instance of application context

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
fun audioDeviceModule(audioDeviceModule: AudioDeviceModule): WebRtcMediaConnectionFactory.Builder

Sets an AudioDeviceModule.

Link copied to clipboard
Link copied to clipboard
fun cameraEnumerator(cameraEnumerator: CameraEnumerator): WebRtcMediaConnectionFactory.Builder

Sets a CameraEnumerator.

Link copied to clipboard

Sets an EglBase.

Link copied to clipboard
fun videoDecoderFactory(videoDecoderFactory: VideoDecoderFactory): WebRtcMediaConnectionFactory.Builder

Sets a VideoDecoderFactory.

Link copied to clipboard
fun videoEncoderFactory(videoEncoderFactory: VideoEncoderFactory): WebRtcMediaConnectionFactory.Builder

Sets a VideoEncoderFactory.