Package-level declarations

Types

Link copied to clipboard
class AndroidAudioTrack(nativeTrack: MediaStreamTrack, onDispose: () -> Unit? = null) : WebRtcMedia.AudioTrack, AndroidMediaTrack
Link copied to clipboard
class AndroidMediaDevices(context: Context, eglBase: EglBase = EglBase.create()) : MediaTrackFactory

MediaDevicesFactory based on the org.webrtc, which uses Android Camera2 API

Link copied to clipboard
abstract class AndroidMediaTrack(nativeTrack: MediaStreamTrack, onDispose: () -> Unit?) : WebRtcMedia.Track

Wrapper for org.webrtc.MediaStreamTrack.

Link copied to clipboard
class AndroidVideoTrack(nativeTrack: MediaStreamTrack, onDispose: () -> Unit? = null) : WebRtcMedia.VideoTrack, AndroidMediaTrack
Link copied to clipboard

Factory for creating audio-related components including audio sources and peer connection factory.

Link copied to clipboard
class CameraVideoCapturer(constraints: WebRtcMedia.VideoTrackConstraints, videoCapturerDelegate: RTCVideoCapturerDelegateProtocol) : Capturer

Camera video capturer that captures live video from device cameras.

Link copied to clipboard

This factory automatically selects the best available camera device and capability based on the provided constraints. It uses a fitness algorithm to find the closest match for the requested video dimensions and frame rate.

Link copied to clipboard

Represents a media capturer that controls the start and stop of media capture operations.

Link copied to clipboard

The factory automatically configures the audio device module with the system's default audio capture device during initialization. Audio sources created by this factory will use the configured audio options based on the provided constraints.

Link copied to clipboard
class IosAudioTrack(nativeTrack: RTCMediaStreamTrack, onDispose: () -> Unit = {}) : WebRtcMedia.AudioTrack, IosMediaTrack

iOS-specific implementation of an audio track that wraps RTCMediaStreamTrack.

Link copied to clipboard
class IosMediaDevices(videoCapturerFactory: VideoCapturerFactory = defaultVideoCapturerFactory()) : MediaTrackFactory

iOS-specific implementation of MediaTrackFactory for WebRTC media operations.

Link copied to clipboard
abstract class IosMediaTrack(nativeTrack: RTCMediaStreamTrack, onDispose: () -> Unit) : WebRtcMedia.Track

iOS-specific implementation of a WebRTC media track that wraps native RTCMediaStreamTrack.

Link copied to clipboard
class IosVideoTrack(nativeTrack: RTCMediaStreamTrack, onDispose: () -> Unit = {}) : WebRtcMedia.VideoTrack, IosMediaTrack

iOS-specific implementation of a video track that wraps RTCMediaStreamTrack.

Link copied to clipboard
class JvmAudioTrack(native: MediaStreamTrack, onDispose: () -> Unit = {}) : WebRtcMedia.AudioTrack, JvmMediaTrack
Link copied to clipboard
class JvmMediaDevices(audioFactory: AudioFactory = DefaultAudioFactory(), videoFactory: VideoFactory = CameraVideoFactory()) : MediaTrackFactory, AutoCloseable

JVM implementation of MediaTrackFactory based dev.onvoid.webrtc.media.

Link copied to clipboard
abstract class JvmMediaTrack(inner: MediaStreamTrack, onDispose: () -> Unit) : WebRtcMedia.Track

JVM implementation of a WebRTC media track wrapper.

Link copied to clipboard
class JvmVideoTrack(native: MediaStreamTrack, onDispose: () -> Unit = {}) : WebRtcMedia.VideoTrack, JvmMediaTrack
Link copied to clipboard
class SimulatorVideoCapturer(constraints: WebRtcMedia.VideoTrackConstraints, videoCapturerDelegate: RTCVideoCapturerDelegateProtocol) : Capturer

Sample video capturer that generates synthetic video frames with animated gradient patterns.

Link copied to clipboard

Represents a video capture device that can start and stop video recording. Implementations should properly handle resource cleanup.

Link copied to clipboard
Link copied to clipboard
interface VideoFactory

Factory for creating video capture devices based on the provided video track constraints.

Functions

Link copied to clipboard

Creates a default video capturer factory for the current platform.

Creates a default video capturer factory for the current platform.

Creates a default video capturer factory for the current platform.

Creates a default video capturer factory for the current platform.

Link copied to clipboard

Returns implementation of the native audio stream track used under the hood. Use it with caution.

Returns implementation of the native video stream track used under the hood. Use it with caution.

fun WebRtcMedia.AudioTrack.getNative(): RTCAudioTrack

Returns implementation of the native audio stream track used under the hood. Use it with caution.

fun WebRtcMedia.VideoTrack.getNative(): RTCVideoTrack

Returns implementation of the native video stream track used under the hood. Use it with caution.

Helper to access native tracks. Use with caution.