MediaConnectionSignaling

Represents a signaling component of MediaConnection.

Properties

Link copied to clipboard
abstract val dataChannel: DataChannel?

an optional DataChannel for messaging between peers

Link copied to clipboard
abstract val directMedia: Boolean

whether this is a direct media call

Link copied to clipboard
Link copied to clipboard
abstract val iceServers: List<IceServer>

a list of available IceServers

Link copied to clipboard

whether relay only mode should be used

Functions

Link copied to clipboard
abstract suspend fun attach(sender: DataSender)
Link copied to clipboard
abstract suspend fun detach(sender: DataSender)
Link copied to clipboard
abstract suspend fun onAck()

Invoked when offer is set and the connection is ready to accept media.

Link copied to clipboard
abstract suspend fun onAnswer(description: String)

Invoked when answer is ready to be sent in a direct media call

Link copied to clipboard
abstract suspend fun onAudioMuted()

Invoked when audio is muted.

Link copied to clipboard
abstract suspend fun onAudioUnmuted()

Invoked when audio is unmuted.

Link copied to clipboard
abstract suspend fun onCandidate(candidate: String, mid: String, ufrag: String, pwd: String)

Invoked when a new ICE candidate is available.

Link copied to clipboard
abstract suspend fun onData(data: Data)

Invoked when Data is received.

Link copied to clipboard
abstract suspend fun onDisconnect()

Invoked when the MediaConnection is disposed.

Link copied to clipboard
abstract suspend fun onDtmf(digits: String)

Invoked when a sequence of DTMF digits must be sent.

Link copied to clipboard
abstract suspend fun onOffer(callType: String, description: String, presentationInMain: Boolean, fecc: Boolean): String?

Invoked when an offer is available.

Link copied to clipboard
abstract suspend fun onOfferIgnored()

Invoked when the client wants to ignore the offer in a direct media call

Link copied to clipboard
abstract suspend fun onPreferredAspectRatio(aspectRatio: Float)

Invoked when preferred aspect ratio has changed.

Link copied to clipboard
abstract suspend fun onReleaseFloor()

Invoked when local presentation feed is removed.

Link copied to clipboard
abstract suspend fun onTakeFloor()

Invoked when local presentation feed is added.

Link copied to clipboard
abstract suspend fun onVideoMuted()

Invoked when video is muted.

Link copied to clipboard
abstract suspend fun onVideoUnmuted()

Invoked when video is unmuted.