utd_media_client
library
Classes
ActiveSpeakersChangedEvent
Active speakers changed. List of speakers are ordered by their audio level.
loudest speakers first. This will include the LocalParticipant too.
Agent
Represents a UTD Media Agent.
AgentAttributes
AgentTranscript
A transcript emitted by the agent.
AudioCaptureOptions
Options used when creating a LocalAudioTrack .
AudioEncoding
A type that represents audio encoding information.
AudioFrame
A single frame of raw PCM audio data.
AudioOutputOptions
AudioPlaybackStatusChanged
AudioProcessorOptions
AudioPublishOptions
Options used when publishing audio.
AudioReceiverStatsEvent
AudioRendererOptions
Options for configuring audio frame capture format.
AudioSenderStatsEvent
AudioVisualizer
AudioVisualizerEvent
AudioVisualizerOptions
BackupVideoCodec
BaseKeyProvider
BaseStreamInfo
BaseStreamReader <T extends BaseStreamInfo , U >
BaseStreamWriter <T , InfoType extends BaseStreamInfo >
BrowserVersion
ByteStreamInfo
ByteStreamReader
ByteStreamWriter
CachingTokenSource
A token source that caches credentials from any TokenSourceConfigurable using a configurable store.
CameraCaptureOptions
Options used when creating a LocalVideoTrack that captures the camera.
ChatMessage
ConnectOptions
Options used when connecting to the server.
CustomTokenSource
A custom token source that executes provided logic to fetch credentials.
DataReceivedEvent
Data received from RemoteParticipant .
Data packets provides the ability to use UTD Media to send/receive arbitrary
payloads.
Emitted by Room and RemoteParticipant .
DataStreamController <T extends DataStream_Chunk >
E2EEManager
E2EEOptions
EndpointTokenSource
A token source that fetches credentials via HTTP requests from a custom backend.
EventsEmitter <T >
EventsListenable <T >
EventsListener <T >
FastConnectOptions
This will enable the local participant to publish tracks on connect,
instead of having to explicitly publish them.
Defaults to false for all three tracks: microphone, camera, and screen.
You can also create LocalAudio/VideoTrack on your PreJoin page
(preview camera or select audio device), Automatically publish these
tracks after the room is connected.
Hardware
InMemoryTokenStore
A simple in-memory store implementation for token caching.
KeyInfo
KeyProvider
LiteralTokenSource
A token source that provides a fixed set of credentials without dynamic fetching.
LocalAudioTrack
LocalParticipant
Represents the current participant in the room. Instance of LocalParticipant is automatically
created after successfully connecting to a Room and will be accessible from Room.localParticipant .
LocalTrack
Base class for LocalAudioTrack and LocalVideoTrack .
LocalTrackOptions
Base class for track options.
LocalTrackPublication <T extends LocalTrack >
A TrackPublication which belongs to the LocalParticipant .
LocalTrackPublishedEvent
When the local participant publishes a new Track to the room.
Emitted by Room and LocalParticipant .
LocalTrackSubscribedEvent
LocalTrackUnpublishedEvent
The local participant has unpublished one of their Track .
Emitted by Room and LocalParticipant .
LocalVideoTrack
A video track from the local device. Use static methods in this class to create
video tracks.
MediaDevice
MessageReceiver
Receives messages produced by the agent.
MessageSender
Sends messages to the agent.
Participant <T extends TrackPublication <Track > >
Represents a Participant in the room, notifies changes via delegates as
well as ChangeNotifier/providers.
A change notification is triggered when
ParticipantAttributesChanged
Participant's attributes have changed.
Emitted by Room .
ParticipantConnectedEvent
When a new RemoteParticipant joins after the current participant has connected
It will not fire for participants that are already in the room
Emitted by Room .
ParticipantConnectionQualityUpdatedEvent
Participant 's ConnectionQuality has updated.
Emitted by Room and Participant .
ParticipantDisconnectedEvent
When a RemoteParticipant leaves the room
Emitted by Room .
ParticipantMetadataUpdatedEvent
Participant metadata is a simple way for app-specific state to be pushed to
all users. When RoomService.UpdateParticipantMetadata is called to change a
Participant 's state, all Participant s in the room will fire this event.
Emitted by Room and Participant .
ParticipantNameUpdatedEvent
ParticipantPermissions
ParticipantPermissionsUpdatedEvent
The ParticipantPermissions updated for the Participant .
Currently, only for LocalParticipant .
Emitted by Room and LocalParticipant .
ParticipantStateUpdatedEvent
ParticipantTrackPermission
PerformRpcParams
PreConnectAudioBuffer
Captures and buffers microphone audio before a room connection completes.
PreConnectAudioBufferStartedEvent
Pre-connect audio buffer has started recording.
Emitted by Room .
PreConnectAudioBufferStoppedEvent
Pre-connect audio buffer has stopped recording.
Emitted by Room .
ProcessorOptions <T extends TrackType >
PublishOptions
ReceivedMessage
A message received from the agent.
ReceivedMessageContent
Base class for message content types that can be received from the agent.
RemoteAudioTrack
RemoteParticipant
Represents other participant in the Room .
RemoteTrack
RemoteTrackPublication <T extends RemoteTrack >
Represents a track publication from a RemoteParticipant. Provides methods to
control if we should subscribe to the track, and its quality (for video).
RemoteVideoTrack
Room
Room
Room is the primary construct for UTD Media conferences. It contains a
group of Participant s, each publishing and subscribing to Track s.
Notifies changes to its state via two ways, by assigning a delegate, or using
it as a provider.
Room will trigger a change notification update when
RoomAgentDispatch
Configuration for dispatching an agent to a room.
RoomAttemptReconnectEvent
report the number of attempts to reconnect to the room.
RoomConfiguration
Configuration for a UTD Media room.
RoomConnectedEvent
RoomDisconnectedEvent
Disconnected from the room
Emitted by Room .
RoomIceStateChangedEvent
The ICE connection state of one of the two peer connections changed. Emitted by Room .
RoomMetadataChangedEvent
Room metadata has changed.
Emitted by Room .
RoomMovedEvent
Fired when the participant has been moved to a different room by the server.
Emitted by Room .
RoomOptions
Room
Options used to modify the behavior of the Room .
RoomReconnectedEvent
Connection to room is re-established. All existing state is preserved.
Emitted by Room .
RoomReconnectingEvent
When the connection to the server has been interrupted and it's attempting
a full reconnect (peer connections are reset, media is interrupted).
Emitted by Room .
RoomRecordingStatusChanged
Room recording status has changed.
Emitted by Room .
RoomResumingEvent
When the signal connection has been interrupted and it's attempting
to resume. Peer connections remain active during this type of reconnect.
Emitted by Room .
RpcInvocationData
RTCConfiguration
RTCIceServer
ScreenSelectDialog
ScreenShareCaptureOptions
Options used when creating a LocalVideoTrack that captures the screen.
SendFileOptions
SendTextOptions
SentMessage
A message sent to the agent.
SentMessageContent
Base class for message content types that can be sent to the agent.
SentUserInput
User-provided text input.
Session
A Session represents a connection to a UTD Media Room that can contain an agent.
SessionError
Represents an error that occurred during a Session .
SessionOptions
Options for creating a Session .
SimulcastTrackInfo
SpeakingChangedEvent
The participant's isSpeaking property has changed
Emitted by Participant .
StreamBytesOptions
StreamTextOptions
StreamWriter <T >
TextMessageSender
Sends text messages to the agent and emits a loopback message so the UI
can reflect the user's input immediately.
TextStreamInfo
TextStreamReader
TextStreamWriter
ThumbnailWidget
ThumbnailWidgetState
Timeouts
TokenRequestOptions
Request parameters for generating connection credentials.
TokenSourceConfigurable
A token source that provides configurable options for room, participant, and agent parameters.
TokenSourceFixed
A token source that returns a fixed set of credentials without configurable options.
TokenSourceRequest
The JSON serializable format of the request sent to standard UTD Media token servers.
TokenSourceResponse
Response containing the credentials needed to connect to a UTD Media room.
TokenStore
Protocol for storing and retrieving cached token credentials.
TokenStoreItem
A tuple containing the request options and response that were cached.
Track
Wrapper around a MediaStreamTrack with additional metadata.
Base for AudioTrack and VideoTrack ,
can not be instantiated directly.
TrackE2EEStateEvent
The E2EEState on the track.
Emitted by E2EEManager .
TrackMutedEvent
A Participant has muted one of the tracks.
Emitted by RemoteParticipant and LocalParticipant .
TrackMuteHoldChangedEvent
The local microphone is muted here but, because a song is being sent to the room through it, the mute is NOT told to the media server
as a track mute (the server would stop the audio of the track and the song with it). held is true while that is so, false when the
server is told the mute (the song stopped) or the user unmuted. An app that tells the room who is muted reads this.
Emitted by LocalParticipant .
TrackOption <E extends Object , T extends Object >
TrackProcessor <T extends ProcessorOptions <TrackType > >
TrackProcessorUpdateEvent
TrackPublication <T extends Track >
Represents a track that's published to the server. This class contains
metadata associated with tracks.
TrackPublishedEvent
When a new Track is published to Room after the current participant has
joined. It will not fire for tracks that are already published.
Emitted by Room and RemoteParticipant .
TrackStreamStateUpdatedEvent
The StreamState on the RemoteTrackPublication has updated by the server.
See RemoteTrackPublication.streamState for more information.
Emitted by Room and RemoteParticipant .
TrackSubscribedEvent
LocalParticipant has subscribed to a new track published by a
RemoteParticipant .
Emitted by Room and RemoteParticipant .
TrackSubscriptionExceptionEvent
An error has occurred during track subscription.
Emitted by Room and RemoteParticipant .
TrackSubscriptionPermissionChangedEvent
One of subscribed tracks have changed its permissions for the current
participant. If permission was revoked, then the track will no longer
be subscribed. If permission was granted, a TrackSubscribed event will
be emitted.
TrackUnmutedEvent
This participant has unmuted one of their tracks
Emitted by RemoteParticipant and LocalParticipant .
TrackUnpublishedEvent
The participant has unpublished one of their Track .
Emitted by Room and RemoteParticipant .
TrackUnsubscribedEvent
The LocalParticipant has unsubscribed from a track published by a
RemoteParticipant . This event is fired when the track was unpublished.
Emitted by Room and RemoteParticipant .
TranscriptionAttributes
TranscriptionEvent
Transcription event received from the server.
TranscriptionSegment
TranscriptionStreamReceiver
Converts UTD Media transcription text streams into ReceivedMessage s.
UserInput
A message that originated from user input (loopback).
UserTranscript
A transcript emitted for the user (e.g., speech-to-text).
UtdmAudioProcessing
Controls of the audio library's AI noise suppression (Android). They exist only in a build of the UTD audio library that carries the
noise-suppression stage; on any other build, and on every other platform, each call answers "not available" and changes nothing.
UtdmClient
Room
Main entry point to connect to a room.
UtdmErrorCode
The stable error codes the UTD Stream engine sends in the code field of a refusal
({"message": "...", "code": "...", "retryable": false}), spelled exactly as the engine sends them.
UtdmForegroundService
An Android foreground service that keeps the app's microphone alive while the user speaks.
UtdmForegroundServiceConfig
What the foreground-service notification says and looks like. Every field is the app's to choose.
UtdmJwtPayload
Parsed payload for a UTD Media-issued JWT.
UtdmMusicCompleted
The file played to its end (onCompleted()).
UtdmMusicEvent
Something the player reported.
UtdmMusicPlayer
The music player inside the audio library (Android): the host plays a song into the room.
UtdmMusicPosition
The position, every 250 ms while playing (onPosition(positionMs, durationMs)).
UtdmMusicStateChanged
The state changed (onStateChanged(state, error)).
UtdmMusicStatus
What a screen needs to draw the player, kept up to date from the events.
UtdmNetwork
What the device knows about its network, for telemetry: the current type, and whether the type changed recently. It reads the same
connectivity events the media engine uses to decide when a reconnect may start; it adds no permission and no polling.
UtdmVideoGrant
Video grants embedded within a JWT.
VideoCaptureOptions
Base class for options when creating a LocalVideoTrack .
VideoDimensions
A simple class that represents dimensions of video.
VideoEncoding
A type that represents video encoding information.
VideoParameters
VideoProcessorOptions
VideoPublishOptions
Options used when publishing video.
VideoReceiverStatsEvent
VideoSenderStatsEvent
VideoTrackRenderer
Widget that renders a VideoTrack .
WritableStream <T >
Functions
agentAttributesFromJson (String source )
→ AgentAttributes
agentAttributesToJson (AgentAttributes value )
→ String
applyRemoteInboundAudioStats (AudioSenderStats stats , {required Map outbound , required Map ? lookupById (String id ) })
→ void
Copies the remote end's view of our uplink — loss, jitter, round-trip time —
from the remote-inbound-rtp entry linked to an outbound-rtp one.
createVisualizer (AudioTrack track , {AudioVisualizerOptions ? options })
→ AudioVisualizer
disableLogging ()
→ void
disable logging
getLoggingLevel ()
→ Level
get the current logging level
isBackupCodec (String codec )
→ bool
isChrome129OrLater ()
→ bool
isResponseExpired (TokenSourceResponse response , {Duration tolerance = const Duration(seconds: 60) , DateTime ? currentTime })
→ bool
Validates whether the JWT token in the response is expired or invalid.
lkBrowser ()
→ BrowserType
lkBrowserVersion ()
→ BrowserVersion
lkPlatform ()
→ PlatformType
lkPlatformIs (PlatformType type )
→ bool
lkPlatformIsDesktop ()
→ bool
lkPlatformIsMobile ()
→ bool
lkPlatformIsTest ()
→ bool
lkPlatformIsWebMobile ()
→ bool
lkPlatformSupportsE2EE ()
→ bool
setLoggingLevel (LoggerLevel level )
→ void
set the logging level
skipStopForTrackMute ()
→ bool
skips stop/replaceTrack for the following platforms and only toggles
track.enabled.
transcriptionAttributesFromJson (String source )
→ TranscriptionAttributes
transcriptionAttributesToJson (TranscriptionAttributes value )
→ String
utdmNetworkTypeOf (List <ConnectivityResult > results )
→ String
The type of the device's network, in the vocabulary the engine's connection telemetry uses: wifi, cellular, ethernet, other,
none. When several links are up, the one the traffic most likely takes wins (Wi-Fi, then Ethernet, then cellular).