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".