startLiveStream method

  1. @override
Future<String> startLiveStream(
  1. String streamUrl,
  2. String streamKey,
  3. String broadcastUrl
)

Start a live stream of the current session to the desired streaming platform, given the live stream url, key and broadcast url.
streamUrl the live stream url
key the live stream key
broadcastUrl the live stream broadcast url
Return ZoomVideoSDKError_Success if the function succeeds. Otherwise, this function returns an error.

Implementation

@override
Future<String> startLiveStream(
    String streamUrl, String streamKey, String broadcastUrl) async {
  var params = <String, dynamic>{};
  params.putIfAbsent("streamUrl", () => streamUrl);
  params.putIfAbsent("streamKey", () => streamKey);
  params.putIfAbsent("broadcastUrl", () => broadcastUrl);

  return await methodChannel
      .invokeMethod<String>('startLiveStream', params)
      .then<String>((String? value) => value ?? "");
}