startPublishingStream method

Future<void> startPublishingStream(
  1. String streamID,
  2. dynamic config,
  3. int? channel
)

Implementation

Future<void> startPublishingStream(
    String streamID, dynamic config, int? channel) {
  String roomID = "";
  if (config["roomID"] != null) {
    roomID = config["roomID"];
  }
  PublishConfig options = PublishConfig(roomID: roomID);
  ZegoFlutterEngine.instance
      .startPublishingStream(streamID, getPublishChannel(channel), options);
  return Future.value();
}