amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.realtime / DefaultRealtimeController

DefaultRealtimeController

class DefaultRealtimeController : RealtimeControllerFacade

Constructors

<init>

DefaultRealtimeController(audioClientController: AudioClientController, audioClientObserver: AudioClientObserver, videoClientController: VideoClientController, videoClientObserver: VideoClientObserver)

Functions

addRealtimeDataMessageObserver

Subscribes to receive message on a topic, there could be multiple observers per topic

fun addRealtimeDataMessageObserver(topic: String, observer: DataMessageObserver): Unit

addRealtimeObserver

Subscribes to real time events with an observer

fun addRealtimeObserver(observer: RealtimeObserver): Unit

addRealtimeTranscriptEventObserver

Subscribes to transcript event with an observer

fun addRealtimeTranscriptEventObserver(observer: TranscriptEventObserver): Unit

realtimeIsVoiceFocusEnabled

Checks if Amazon Voice Focus is enabled.

fun realtimeIsVoiceFocusEnabled(): Boolean

realtimeLocalMute

Mute the audio input.

fun realtimeLocalMute(): Boolean

realtimeLocalUnmute

Unmutes the audio input.

fun realtimeLocalUnmute(): Boolean

realtimeSendDataMessage

Send message via data channel. Messages are only expected to be sent after audio video has started, otherwise will be ignored. Even though one can send data messages to any valid topic, in order to receive the messages from the given topic, one need to subscribed to the topic by calling addRealtimeDataMessageObserver. LifetimeMs specifies milliseconds for the given message can be stored in server side. Up to 1024 messages may be stored for a maximum of 5 minutes.

fun realtimeSendDataMessage(topic: String, data: Any, lifetimeMs: Int): Unit

realtimeSetVoiceFocusEnabled

Enable or disable Amazon Voice Focus (ML-based noise suppression) on the audio input.

fun realtimeSetVoiceFocusEnabled(enabled: Boolean): Boolean

removeRealtimeDataMessageObserverFromTopic

Unsubscribes from a message topic

fun removeRealtimeDataMessageObserverFromTopic(topic: String): Unit

removeRealtimeObserver

Unsubscribes from real time events by removing the specified observer

fun removeRealtimeObserver(observer: RealtimeObserver): Unit

removeRealtimeTranscriptEventObserver

Unsubscribes from transcript event by removing the specified observer

fun removeRealtimeTranscriptEventObserver(observer: TranscriptEventObserver): Unit