MultimediaSession

Properties

Link copied to clipboard
abstract val address: String

The address associated with this session.

Link copied to clipboard
abstract val conversationId: UUID

The unique identifier of the conversation this session belongs to.

Link copied to clipboard
abstract val createdAt: Long

The timestamp in milliseconds when this session was created.

Link copied to clipboard
abstract val displayName: String

The display name for this session.

Link copied to clipboard
abstract val event: SharedFlow<MultimediaSessionEvent>

A stream of MultimediaSessionEvent instances emitted during the session lifecycle.

Link copied to clipboard
abstract val identifier: Int

A numeric identifier for this session.

Link copied to clipboard
abstract val isActive: Boolean

Whether this session is currently active (not on hold).

Link copied to clipboard

Whether the microphone is currently muted.

Link copied to clipboard
abstract val isSpeakerMuted: Boolean

Whether the speaker is currently muted.

Link copied to clipboard

A stream of the local MultimediaParticipant.

Link copied to clipboard

A stream of remote MultimediaParticipant instances currently in the session.

Link copied to clipboard

The current MultimediaSessionStatus of this session.

Functions

Link copied to clipboard
open fun activate()

Takes the session off hold. Equivalent to hold(false).

Link copied to clipboard
abstract fun audioInput(muteMicrophone: Boolean)

Enables or disables the microphone (audio input).

Link copied to clipboard
abstract fun audioOutput(muteSpeaker: Boolean)

Enables or disables the speaker (audio output).

Link copied to clipboard
open fun deactivate()

Places the session on hold. Equivalent to hold(true).

Link copied to clipboard
open fun end()

Ends the session. Equivalent to leave.

Link copied to clipboard
abstract fun hold(onHold: Boolean)

Places the session on hold or takes it off hold.

Link copied to clipboard
abstract fun join()

Joins the multimedia session.

Link copied to clipboard
abstract fun leave()

Leaves the multimedia session.

Link copied to clipboard
open fun muteMicrophone()

Mutes the microphone. Equivalent to audioInput(false).

Link copied to clipboard
open fun muteSpeakers()

Mutes the speaker. Equivalent to audioOutput(false).

Link copied to clipboard
open fun unmuteMicrophone()

Unmutes the microphone. Equivalent to audioInput(true).

Link copied to clipboard
open fun unmuteSpeakers()

Unmutes the speaker. Equivalent to audioOutput(true).