원클릭으로
audio-controls
// Audio controls for CometChat Calls SDK v5 Flutter. Mute/unmute audio, switch audio mode (speaker, earpiece, bluetooth). Triggers on "mute", "unmute", "audio", "speaker", "earpiece", "bluetooth", "audio mode".
// Audio controls for CometChat Calls SDK v5 Flutter. Mute/unmute audio, switch audio mode (speaker, earpiece, bluetooth). Triggers on "mute", "unmute", "audio", "speaker", "earpiece", "bluetooth", "audio mode".
Set up CometChat Calls SDK v5 for Flutter. Use when adding SDK dependency, configuring CallAppSettings, CometChatCalls.init, platform permissions. Triggers on "setup calls sdk", "add cometchat dependency", "initialize calls", "pubspec".
Background call handling in CometChat Calls SDK v5 Flutter. Keep calls alive in background, OngoingCallService, lifecycle management. Triggers on "background", "foreground service", "keep alive", "app lifecycle", "background call".
Fetch and display call history using CallLogRequest and CallLogRequestBuilder. Use when showing call logs, call history, filtering by type/status/direction. Triggers on "call logs", "call history", "CallLogRequest", "fetchNext", "call records".
Custom UI for CometChat Calls SDK v5 Flutter. Custom control panel, hide default UI, build your own call controls. Triggers on "custom ui", "custom controls", "hide control panel", "custom layout", "overlay", "custom buttons".
CometChat Calls SDK v5 event listeners for Flutter. SessionStatusListeners, ParticipantEventListeners, MediaEventListeners, ButtonClickListeners, LayoutListeners. Triggers on "listener", "event", "callback", "onSessionJoined", "onParticipantJoined", "onAudioModeChanged".
In-call chat messaging during active CometChat call session in Flutter. Chat button, unread count badge. Triggers on "in-call chat", "chat button", "messaging during call", "unread count", "in call message".
| name | audio-controls |
| description | Audio controls for CometChat Calls SDK v5 Flutter. Mute/unmute audio, switch audio mode (speaker, earpiece, bluetooth). Triggers on "mute", "unmute", "audio", "speaker", "earpiece", "bluetooth", "audio mode". |
| inclusion | manual |
Control audio during an active call session — mute/unmute microphone and switch audio output device.
import 'package:cometchat_calls_sdk/cometchat_calls_sdk.dart';
final session = CallSession.getInstance();
// Mute
await session?.muteAudio();
// Unmute
await session?.unMuteAudio();
// Toggle
await session?.toggleMuteAudio();
// Check state
bool isMuted = session?.isAudioMuted ?? false;
final session = CallSession.getInstance();
// Switch to speaker
await session?.setAudioModeType(AudioMode.speaker);
// Switch to earpiece
await session?.setAudioModeType(AudioMode.earpiece);
// Switch to bluetooth
await session?.setAudioModeType(AudioMode.bluetooth);
// Switch to headphones
await session?.setAudioModeType(AudioMode.headphones);
class MyMediaListener implements MediaEventListeners {
@override
void onAudioMuted() {
debugPrint("Audio muted");
}
@override
void onAudioUnMuted() {
debugPrint("Audio unmuted");
}
@override
void onAudioModeChanged(AudioMode audioMode) {
debugPrint("Audio mode changed to: ${audioMode.value}");
}
}
AudioMode.speaker — Phone speakerAudioMode.earpiece — Phone earpieceAudioMode.bluetooth — Bluetooth deviceAudioMode.headphones — Wired headphonesisAudioMuted reflects the local mute statelib/screens/call_screen.dart — Audio control integration