iOS: By default the audio only works through an earpiece, not the main speaker
indigothm opened this issue · 1 comments
indigothm commented
Version: videosdk: 1.0.10
OS: iOS
Device: iPhone 12
Hi, I have a bug that I can't quite resolve at first glance. For some reason, the iOS SDK defaults to using the earpiece audio instead of the main speakers. When I connect a second source, like Bluetooth earbuds, it works correctly. I can switch between the main speaker and the earbuds with no issues (but still no earpiece in the sources).
Here is how my room is configured:
room = VideoSDK.createRoom(
defaultCameraIndex: 1,
roomId: widget.meetingId,
token: widget.token,
displayName: 'Customer',
micEnabled: micEnabled,
camEnabled: webcamEnabled,
maxResolution: 'hd',
notification: const NotificationInfo(
title: "Video SDK",
message: "Video SDK is sharing screen in the meeting",
icon: "notification_share",
),
);
When nothing is connected to the phone, getAudioOutputDevices returns only 1 audio device with "Speaker" deviceId. The sound comes through the earpiece:
indigothm commented
I was able to fix this by setting the room's multiStream parameter to false.