Package-level declarations

Types

Link copied to clipboard
class CameraException(message: String? = null, cause: Throwable? = null) : Exception

Triggered if for whatever reason we fail to access the camera There are dozens of underlying reasons for why the camera can fail We catch them and wrap them in this exception

Link copied to clipboard
sealed class DisconnectCause

Sealed class represents possible cause of disconnection.

Link copied to clipboard
class MicrophoneException(message: String? = null, cause: Throwable? = null) : Exception

Triggered if for whatever reason we fail to access the microphone

Link copied to clipboard
class RtcException(message: String? = null, cause: Throwable? = null, retryCurrentSfu: Boolean = false, switchSfu: Boolean = false, error: <Error class: unknown class>? = null) : Exception

Wraps any exception that occurs in the RTC layer With a recommendation if we should retry the current SFU, stop or switch to a different one

Link copied to clipboard

Inherited functions

Link copied to clipboard
fun Error.NetworkError.Companion.create(code: VideoErrorCode, cause: Throwable? = null, statusCode: Int = -1): Error.NetworkError
fun Error.NetworkError.Companion.create(streamCode: Int, description: String, statusCode: Int, cause: Throwable? = null): Error.NetworkError