publish abstract method

  1. @Deprecated('')
Future<void> publish()

Publish local audio and video streams to the channel. The call of this method must meet the following requirements, otherwise the SDK returns -5(ERR_REFUSED): This method only supports publishing audio and video streams to the channel corresponding to the current RtcChannel object. In the interactive live streaming channel, only a host can call this method. To switch the client role, call setClientRole of the current RtcChannel object. You can publish a stream to only one channel at a time. For details on joining multiple channels, see the advanced guide Join Multiple Channels.

Implementation

@Deprecated('')
Future<void> publish();