Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultAudioDevice' is ambiguous for type lookup in this context #668

Open
sumit-vts opened this issue Apr 17, 2024 · 1 comment
Open

DefaultAudioDevice' is ambiguous for type lookup in this context #668

sumit-vts opened this issue Apr 17, 2024 · 1 comment

Comments

@sumit-vts
Copy link

In our project, we've successfully implemented Twilio video calls. We're now integrating the Twilio Voice framework as well. However, we've encountered an error: 'DefaultAudioDevice' is ambiguous for type lookup in this context.

import TwilioVideo
import CallKit
import TwilioVoice

var audioDevice: DefaultAudioDevice = DefaultAudioDevice()

I tried with TwilioVideoSDK.DefaultAudioDevice() but its throw the following error: "Type 'TwilioVideoSDK' has no member 'DefaultAudioDevice'"

@asemivragovs
Copy link
Collaborator

Hello!
Yes, both Voice and Video SDKs have the same DefaultAudioDevice class name.
You can use the module name prefix to distinguish between them - TwilioVideo.DefaultAudioDevice() and TwilioVoice.DefaultAudioDevice()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants