Types

Link copied to clipboard

Answering. Incoming call is responding to remote peer

Link copied to clipboard
data class Connected(val iceConnectionState: MxPeerConnectionState) : CallState

Connected. Incoming/Outgoing call, ice layer connecting or connected Notice that the PeerState failed is not always final, if you switch network, new ice candidtates could be exchanged, and the connection could go back to connected

Link copied to clipboard

CreateOffer. Intermediate state between Idle and Dialing.

Link copied to clipboard

Dialing. Outgoing call is signaling the remote peer

Link copied to clipboard
data class Ended(val reason: EndCallReason? = null) : CallState

Ended. Incoming/Outgoing call, the call is terminated

Link copied to clipboard
object Idle : CallState

Idle, setting up objects.

Link copied to clipboard

Local ringing. Incoming call offer received