Listener

interface Listener

Functions

Link copied to clipboard
abstract fun onAddLocalStream(ms: MediaStream)
Link copied to clipboard
abstract fun onAddRemoteStream(ms: MediaStream)
Link copied to clipboard
abstract fun onConnect()
Link copied to clipboard
abstract fun onDataChannelClosed(label: String, dataChannel: DataChannel)
Link copied to clipboard
abstract fun onDataChannelMessage(label: String, dataChannel: DataChannel, dataChannelBuffer: DataChannel.Buffer)
Link copied to clipboard
abstract fun onDataChannelOpen(label: String, dataChannel: DataChannel)
Link copied to clipboard
abstract fun onDisconnect(disconnectReason: SoraDisconnectReason?)
Link copied to clipboard
abstract fun onError(reason: SoraErrorReason)
abstract fun onError(reason: SoraErrorReason, message: String)
Link copied to clipboard
abstract fun onLocalIceCandidateFound(candidate: IceCandidate)
Link copied to clipboard
abstract fun onRemoveRemoteStream(label: String)
Link copied to clipboard
abstract fun onSenderEncodings(encodings: List<RtpParameters.Encoding>)
Link copied to clipboard
abstract fun onWarning(reason: SoraErrorReason)
abstract fun onWarning(reason: SoraErrorReason, message: String)