Package-level declarations

Types

Link copied to clipboard
data class AudioTrack(val streamId: String, val audio: AudioTrack) : MediaTrack
Link copied to clipboard
data class CallData(val blockedUsersIds: List<String>, val call: CallInfo, val members: List<CallUser>, val ownMembership: CallUser?)
Link copied to clipboard
data class CallDetails(val memberUserIds: List<String>, val members: Map<String, CallUser>, val ownCapabilities: List<OwnCapability>) : Serializable
Link copied to clipboard
data class CallEgress(val broadcastEgress: String, val recordEgress: String)
Link copied to clipboard

Represents the type of events we can send around calls.

Link copied to clipboard
data class CallInfo(val cid: String, val type: String, val id: String, val createdByUserId: String, val broadcastingEnabled: Boolean, val recordingEnabled: Boolean, val createdAt: Date?, val updatedAt: Date?, val custom: Map<String, Any?>) : Serializable
Link copied to clipboard
data class CallMember(val callCid: String, val role: String, val userId: String, val createdAt: Date?, val updatedAt: Date?) : Serializable
Link copied to clipboard
data class CallRecordingData(val fileName: String, val url: String, val start: Long, val end: Long)

Represents a single call recording with its metadata.

Link copied to clipboard
sealed interface CallStatus
Link copied to clipboard
data class CallUser(val id: String, val name: String? = null, val role: String? = null, val imageUrl: String? = null, val teams: List<String>? = null, val state: CallUserState?, val createdAt: Date?, val updatedAt: Date?) : Serializable
Link copied to clipboard
data class CallUserState(val trackIdPrefix: String, val online: Boolean, val audio: Boolean, val video: Boolean)
Link copied to clipboard
data class EdgeData(val id: String, val latencyTestUrl: String, val latitude: Float, val longitude: Float, val green: Int, val yellow: Int, val red: Int)

Represents the information about an Edge center in our network.

Link copied to clipboard
@Serializable
data class IceCandidate(sdpMid: String, sdpMLineIndex: Int, candidate: String, usernameFragment: String?)
Link copied to clipboard
data class IceServer(val urls: List<String>, val username: String, val password: String) : Serializable
Link copied to clipboard
data class Ingress(var rtmp: RTMP)
Link copied to clipboard
sealed class MediaTrack
Link copied to clipboard
data class Member(val createdAt: OffsetDateTime, val custom: Map<String, Any?>, val updatedAt: OffsetDateTime, val user: User, val userId: String, val deletedAt: OffsetDateTime? = null, val role: String? = null)
Link copied to clipboard
data class MuteUsersData(val users: List<String>? = null, val muteAllUsers: Boolean? = null, val audio: Boolean? = null, val screenShare: Boolean? = null, val video: Boolean? = null)

Represents the data used to request user's tracks to be muted.

Link copied to clipboard
sealed class NetworkQuality

Represents the network connection quality of a video call.

Link copied to clipboard
data class QueriedCalls(val calls: List<CallData>, val next: String?, val prev: String?)
Link copied to clipboard
data class QueriedMembers(val members: List<Member>, val next: String?, val prev: String?)
Link copied to clipboard
data class Reaction(val id: String, val response: ReactionResponse, val createdAt: Long, var isConsumed: Boolean = false)
Link copied to clipboard
data class ReactionData(val type: String, val user: User, val emoji: String?, val custom: Map<String, Any?>?)

Represents the information about a successfully sent reaction.

Link copied to clipboard
sealed interface ReactionState
Link copied to clipboard
sealed class RejectReason
Link copied to clipboard
data class RTMP(var address: String, var streamKey: String)
Link copied to clipboard
data class ScreenSharingSession(val participant: ParticipantState)

Contains a track with the screen sharing content and the participant that's sharing the screen.

Link copied to clipboard
data class SortData(val direction: Int = DEFAULT_SORT_DIRECTION, val sortField: String)

Represents the data required to apply a sorting method to queries.

Link copied to clipboard
sealed class SortField
Link copied to clipboard

The type of peer connections, either a PUBLISHER that sends data to the call or a SUBSCRIBER that receives and decodes the data from the server.

Link copied to clipboard
data class UpdateUserPermissionsData(val userId: String, val grantedPermissions: List<String>? = null, val revokedPermissions: List<String>? = null)

Represents the data used to request user permission updates.

Link copied to clipboard
data class VideoTrack(val streamId: String, val video: VideoTrack) : MediaTrack
Link copied to clipboard

Participant visibility on the screen.

Inherited functions

Link copied to clipboard
infix fun CallUser.merge(that: CallUser?): CallUser

Merges that into this CallUser to absorb as much data as possible from both instances.

Merges that into this CallUserState to absorb as much data as possible from both instances.

Merges that into this map.

Merges CallUser maps to absorb as many non-null and non-empty data from both collections.

Link copied to clipboard
fun StreamPeerType.toPeerType(): <Error class: unknown class>