CallClient class Null safety
The main entry point for using Daily
, CallClient is used to join a Daily room
with configurable media inputs, as well as quality and bandwidth settings when publishing tracks.
A CallClient instance is pre-configured with reasonable defaults for a high-quality video calling experience but can be further configured to fit different use cases.
Properties
- activeSpeaker → Participant?
-
The current active speaker in this CallClient's call.
read-only
- availableDevices → Devices
-
The devices currently available to this CallClient.
read-only
- callConfig → CallConfig?
-
The current
CallConfig
, if in a call.read-only - callState → CallState
-
The current CallState.
read-only
-
events
→ Stream<
Event> -
The stream of events from this CallClient
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- inputs → InputSettings
-
The current input settings
read-only
- participants → Participants
-
The current participants in this CallClient's call.
read-only
- publishing → PublishingSettings
-
The current publishing settings.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
subscriptionProfiles
→ Map<
SubscriptionProfile, MediaSubscriptionSettings> -
Subscription settings for all profiles configured for this call. SubscriptionProfile.base is always present.
read-only
-
subscriptions
→ Map<
ParticipantId, SubscriptionSettings> -
The current subscription settings.
read-only
- username → String?
-
Returns this CallClient's username.
read-only
Methods
-
addLiveStreamingEndpoints(
{required PreconfiguredLiveStreamEndpoints endpoints, StreamId? streamId, bool? forceNew}) → Future< void> - Adds additional endpoints to an ongoing live stream.
-
callConfigFor(
{required Uri url, String? token}) → Future< CallConfig> -
Fetches the call configuration for the room at
url
. -
dispose(
) → Future< void> - Tear down and clean up all resources associated with this CallClient.
-
join(
{required Uri url, ClientSettingsUpdate? clientSettings, String? token}) → Future< CallJoinData> - Joins a room, optionally with the settings from the given ClientSettingsUpdate.
-
leave(
) → Future< void> - Leaves the CallClient's current call, if there is one. Otherwise does nothing.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
removeLiveStreamingEndpoints(
{required PreconfiguredLiveStreamEndpoints endpoints, StreamId? streamId}) → Future< void> - Updates the settings of an ongoing live stream.
-
sendAppMessage(
String event, Map< String, dynamic> data, ParticipantId? recipient) → Future<AppMessage> - Sends a custom app message, to be interpreted by recipients at their discretion.
-
sendChatMessage(
{required String message, ParticipantId? recipient}) → Future< ChatMessage> - Sends a message to the this CallClient's current room. If a recipient is not specified, the message is sent to the whole room.
-
sendChatMessageReaction(
{required ChatMessage message, required String reaction, String? skinTone}) → Future< ChatMessageReaction> - Sends a reaction to a previously received chat message.
-
setAudioDevice(
{required DeviceId deviceId}) → Future< void> - ////////////////////////////////////////////
-
setCameraFacingMode(
{required MediaTrackFacingMode facingMode}) → Future< void> -
setInputsEnabled(
{bool? microphone, bool? camera}) → Future< void> -
setPublishingEnabled(
{bool? microphone, bool? camera}) → Future< void> -
setUsername(
String username) → Future< void> - Sets this CallClient's username.
-
startLiveStream(
{required LiveStreamEndpoints endpoints, StreamingSettings? streamingSettings, StreamId? streamId, bool forceNew = false}) → Future< void> - Starts a new live stream.
-
startRecording(
{StreamingSettings? streamingSettings, StreamId? streamId, bool? forceNew}) → Future< void> - Starts a new recording, if recording is enabled for the current room.
-
stopLiveStream(
{StreamId? streamId}) → Future< void> - Stops an ongoing live stream.
-
stopRecording(
{StreamId? streamId}) → Future< void> - Stops the specified recording.
-
toggleCameraEnabled(
) → Future< void> -
toggleCameraFacingMode(
) → Future< void> -
toggleCameraPublishingEnabled(
) → Future< void> -
toggleMicrophoneEnabled(
) → Future< void> -
toggleMicrophonePublishingEnabled(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
updateInputs(
{required InputSettingsUpdate inputs}) → Future< void> - Enable/disable and/or configure input devices, eg. camera and microphone, for this CallClient.
-
updateLiveStream(
{required StreamingSettings streamingSettings, StreamId? streamId}) → Future< void> - Removes endpoints from an ongoing live stream.
-
updatePublishing(
{required PublishingSettingsUpdate publishing}) → Future< void> - Enable/disable publishing and/or configure quality or bandwidth for different media tracks, like the video and audio tracks.
-
updateRecording(
{required StreamingSettings streamingSettings, StreamId? streamId}) → Future< void> - Updates the settings for an ongoing recording.
-
updateSubscriptionProfiles(
{required SubscriptionProfileSettingsUpdatesByProfile forProfiles}) → Future< void> - Configure subscription settings for a given profile.
-
updateSubscriptions(
{SubscriptionSettingsUpdatesById? forParticipants, SubscriptionSettingsUpdatesByProfile? forParticipantsWithProfiles}) → Future< void> - Subscribe/unsubscribe to, and/or configure subscription settings for remote media tracks.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
) → Future< CallClient>