twilio / video-quickstart-ios

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

Use of unresolved identifier 'Settings' #471

Closed nah2015 closed 4 years ago

nah2015 commented 4 years ago

I am using code directly from the ViewController.swift. This section in question results in Swift compiler errors. "Use of unresolved identifier 'Settings'"

Code

       `// Use the preferred audio codec
        if let preferredAudioCodec = Settings.shared.audioCodec {
            builder.preferredAudioCodecs = [preferredAudioCodec]
        }

        // Use the preferred video codec
        if let preferredVideoCodec = Settings.shared.videoCodec {
            builder.preferredVideoCodecs = [preferredVideoCodec]
        }

        // Use the preferred encoding parameters
        if let encodingParameters = Settings.shared.getEncodingParameters() {
            builder.encodingParameters = encodingParameters
        }

        // Use the preferred signaling region
        if let signalingRegion = Settings.shared.signalingRegion {
            builder.region = signalingRegion
        }`

Video iOS SDK

3.2

Xcode

11

iOS Version

13.4

iOS Device

iPhone 11 Pro

ceaglest commented 4 years ago

Hi @nah2015,

There is a Settings class that the examples depend on. It stores any user configurable state that is selected from the settings UI, and populates default values. It's not necessary to use it if you just want the default ConnectOptions, or have some other way of configuring our SDK.

I hope that helps, but let us know if you have any more questions.

Thanks, Chris