twilio / video-quickstart-ios

Twilio Video Quickstart for iOS
https://www.twilio.com/docs/api/video
MIT License
460 stars 177 forks source link

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

Closed pkumawat34 closed 3 years ago

pkumawat34 commented 3 years ago

import UIKit import TwilioVoice import TwilioVideo import AVFoundation import PushKit import CallKit

class AudioCallVC: UIViewController { var audioDevice: DefaultAudioDevice = DefaultAudioDevice() }

smartphone-pro commented 3 years ago

@pkumawat34 Hello, Did you solve the above issue? I'm suffering from the same error.

piyushtank commented 3 years ago

@pkumawat34 The DefaultAudioDevice is defined in both voice and video SDKs. Have you tried using TwilioVideoSDK.DefaultAudioDevice()? Another option is to have a utility method in their respective swift file for voice and video to have get the approprite audio device of your choice.

piyushtank commented 3 years ago

Closing the ticket assuming the problem is resolved. Feel free to reach out to us if you run into any issues.

DiegoQuimbo commented 3 years ago

TwilioVideoSDK.DefaultAudioDevice() throw the following error: "Type 'TwilioVideoSDK' has no member 'DefaultAudioDevice'"