WebRtcProducer

interface WebRtcProducer

Basic WebRTC producer abstraction.

Properties

Link copied to clipboard
abstract val id: String
Link copied to clipboard
abstract val kind: MediaKind
Link copied to clipboard
abstract val paused: Boolean
Link copied to clipboard
abstract val source: ProducerSource

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun pause()
Link copied to clipboard
abstract fun replaceTrack(track: MediaStreamTrack)

Replaces the track being transmitted by this producer. This is essential for camera switching - the new camera's track must be sent to mediasoup so remote participants receive the new feed.

Link copied to clipboard
abstract fun resume()