# Meeting settings

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

> The code on this page works with either the **default UI** or the **custom UI**.

## Get and set audio or video state

After the meeting has been initialized, you can change the meeting audio or video state.

```swift
guard let settings = MobileRTC.shared().getMeetingSettings() else { return }
let isAutoConnected = settings.autoConnectInternetAudio()
let isAudioMuted = settings.muteAudioWhenJoinMeeting()
let isVideoMuted = settings.muteVideoWhenJoinMeeting()
let disabled = settings.driveModeDisabled()
let disabledCallIn = settings.callInDisabled()
let disabledCallOut = settings.callOutDisabled()

// Set meeting audio/video state settings.setAutoConnectInternetAudio(Bool) settings.setMuteAudioWhenJoinMeeting(Bool) settings.setMuteVideoWhenJoinMeeting(Bool) settings.disableDriveMode(Bool) settings.disableCallIn(Bool) settings.disableCallOut(Bool)
```

```objectivec
MobileRTCMeetingSettings *settings = [[MobileRTC sharedRTC] getMeetingSettings];
if (!settings)
return nil;
BOOL isAutoConnected = [settings autoConnectInternetAudio];
BOOL isAudioMuted = [settings muteAudioWhenJoinMeeting];
BOOL isVideoMuted = [settings muteVideoWhenJoinMeeting];
BOOL disabled = [settings driveModeDisabled];
BOOL disabledCallIn = [settings callInDisabled];
BOOL disabledCallOut = [settings callOutDisabled];

//Set Meeting audio/video state
[[[MobileRTC sharedRTC] getMeetingSettings] setAutoConnectInternetAudio:BOOL];
[[[MobileRTC sharedRTC] getMeetingSettings] setMuteAudioWhenJoinMeeting:BOOL];
[[[MobileRTC sharedRTC] getMeetingSettings] setMuteVideoWhenJoinMeeting:BOOL];
[[[MobileRTC sharedRTC] getMeetingSettings] disableDriveMode:BOOL];
[[[MobileRTC sharedRTC] getMeetingSettings] disableCallIn:BOOL];
[[[MobileRTC sharedRTC] getMeetingSettings] disableCallOut:BOOL];
```

```swift
if let ms = MobileRTC.shared().getMeetingService() {
    // Check whether cloud recording is supported
    let isEnabled = ms.isCMREnabled()

    // Check whether cloud recording is in progress
    let isInProgress = ms.isCMRInProgress()

    // Turn on cloud recording
    ms.turnOnCMR(true)

    // Turn off cloud recording
    ms.turnOnCMR(false)
}
```

```objectivec
MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService];

//To check whether the app supports cloud recording or not
[ms isCMREnabled];

//To check whether cloud recording is in progress
[ms isCMRInProgress];

//Turn on cloud recording
[ms turnOnCMR:YES];

//Turn off cloud recording
[ms turnOnCMR:NO];
```

---
