Swift

Adjusting audio and video

You can make audio and video adjustments to published and subscribed streams:

Publishing audio or video only

You can toggle audio and video on or off, by setting the publishAudio and publishVideo properties. For example, the following code turns audio off:

Publishing in a voice-only session

To set up a voice-only session, set the videoTrack property of the OTPublisherSettings object to false when you initialize each OTPublisher object in the session. For example, the following code creates a publisher for a voice-only session:

Adjusting audio and video

Learn more about manipulating audio and video of Vonage Video API streams for your application. Publish only video or audio, adjust the frame rate, and more.

Steps
1
Introduction
2
Prerequisites
3
Adjusting audio and video
4
Adjusting video settings
5
Adjusting audio settings
6
Subscribing to audio or video only
7
Detecting audio or video
8
What's next?