React Native
Detecting when a stream adds or removes audio or video
The OTSession object dispatches a streamPropertyChanged event when a stream toggles audio or video on or off. The event object has a changedProperty property set to hasAudio or hasVideo when the audio or video changes. The newValue property is set to a Boolean value. For example, the following code listens for changes in a audio and video in a Stream:
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.
手順
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?