✨ Fake call audio level
This commit is contained in:
@@ -247,8 +247,15 @@ class CallControlsBar extends HookConsumerWidget {
|
||||
String deviceType,
|
||||
) async {
|
||||
try {
|
||||
// TODO: Implement device switching for WebRTC
|
||||
// This would require restarting the media stream with the new device
|
||||
final callNotifier = ref.read(callNotifierProvider.notifier);
|
||||
if (callNotifier.webrtcManager == null) return;
|
||||
|
||||
if (deviceType == 'videoinput') {
|
||||
await callNotifier.webrtcManager!.switchCamera(device.deviceId);
|
||||
} else if (deviceType == 'audioinput') {
|
||||
await callNotifier.webrtcManager!.switchMicrophone(device.deviceId);
|
||||
}
|
||||
|
||||
if (context.mounted) {
|
||||
showSnackBar(
|
||||
'switchedTo'.tr(
|
||||
|
||||
Reference in New Issue
Block a user