Enable audio only mode in the ACS UI library

The UI Library allows you to modify the Audio Video mode of a Call for a local user.

In this article, you learn how to enable Audio only mode, which disables local and remote video capabilities.

Prerequisites

Set up the features

// Create a Call Composite Local Options
val options = CallCompositeLocalOptions()

// Set the Audio Video Mode to Audio Only
options.setAudioVideoMode(CallCompositeAudioVideoMode.AUDIO_ONLY)
// Set the Audio Mode when creating the Local Options
let localOptions = LocalOptions(..., audioVideoMode: .audioOnly)

Next steps