React Native
Publishing audio or video only
To toggle audio and video on and off, set the publishAudio and publishVideo properties of the properties prop passed into the OTPublisher component:
By default, these are set to true (both audio and video are published).
When you toggle audio or video on or off, the OTSession object in each connected client dispatches a streamPropertyChanged event with the changedProperty property of the event object set to "hasAudio" or "hasVideo".
Adjusting audio and video
Learn more about manipulating audio and video of Vonage Video API streams for your React Native application. Publish only video or audio, adjust the frame rate, and more.
Steps
1
Introduction2
Prerequisites3
Publishing audio or video only4
Publishing in a voice-only session5
Setting the resolution and frame rate for a video6
Switching the camera used by a Publisher7
Subscribing to audio or video only8
Changing the audio level of a subscriber9
Detecting whether a stream has audio or video10
Detecting when a stream adds or removes audio or video11
Setting audio bitrate12
Reducing audio bandwidth with Opus DTX13
Applying filters to published video14
Applying a noise suppression filter to published video15
Publishing audio only for Publishers with low bandwidth16
What's next?