Linux

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 calling the otc_publisher_set_publish_audio() and otc_publisher_set_publish_video() functions, passing in `OTC_FALSE` or OTC_FALSE as the publish_audio and publish_audio parameters. For example, the following code turns audio off:

Publishing in a voice-only session

To set up a voice-only session, instantiate an otc_publisher_settings struct, call the otc_publisher_settings_set_video_track() function, passing in OTC_FALSE as the enabled parameter.

Then use the otc_publisher_new_with_settings() function to create. 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?