MediaConnection

interface MediaConnection

A media connection.

Types

Link copied to clipboard

Properties

Link copied to clipboard

current main remote video track or null

Link copied to clipboard

current presentation remote video track or null

Link copied to clipboard

current secure check code, the value may be null

Functions

Link copied to clipboard
abstract fun dispose()

Disposes this MediaConnection and frees all held resources associated with it.

Link copied to clipboard
abstract fun dtmf(digits: String)

Sends DTMF digits to this MediaConnection.

Link copied to clipboard
abstract fun setMainAudioTrack(localAudioTrack: LocalAudioTrack?)

Sets the main audio track.

Link copied to clipboard

Sets the DegradationPreference for main video stream.

Link copied to clipboard

Enables or disables the receive of remote audio.

Link copied to clipboard

Enables or disables the receive of remote video.

Sets the preferred aspect ratio for remote video.

Link copied to clipboard
abstract fun setMainVideoTrack(localVideoTrack: LocalVideoTrack?)

Sets the main video track.

Link copied to clipboard
abstract fun setMaxBitrate(bitrate: Bitrate)

Sets the maximum bitrate for each video stream.

Link copied to clipboard

Sets the DegradationPreference for presentation video stream.

Link copied to clipboard

Enables or disables the receive of ongoing remote presentation video.

Link copied to clipboard
abstract fun setPresentationVideoTrack(localVideoTrack: LocalVideoTrack?)

Sets the presentation video track.

Link copied to clipboard
abstract fun start()

Starts the negotiation process.

Inherited functions

Link copied to clipboard

Converts this MediaConnection to a main remote video track Flow.

Link copied to clipboard

Converts this MediaConnection to a presentation remote video track Flow.

Link copied to clipboard

Converts this MediaConnection to a main remote video track StateFlow.

Link copied to clipboard

Converts this MediaConnection to a presentation remote video track StateFlow.