startVideoCapture static method

Future<void> startVideoCapture({
  1. required dynamic flyCallback(
    1. FlyResponse response
    ),
})

Start Video Capture in joined via link call.

This method starts the video capture process for a call that has been joined via a link. It is useful for enabling video transmission after joining a call in audio-only mode or when video capture needs to be started at a specific point during the call.

The method takes a callback function flyCallback as a parameter. This callback is invoked upon the completion of the operation, providing a FlyResponse object that contains information about the success or failure of the operation.

Parameters: flyCallback - A function that is called upon completion of the operation. Example usage:

Mirrorfly.startVideoCapture(flyCallback: (response) {
  if (response.isSuccess) {
    print("Video capture started successfully");
  } else {
    print("Failed to start video capture: ${response.errorMessage}");
  }
});

Implementation

static Future<void> startVideoCapture(
    {required Function(FlyResponse response) flyCallback}) {
  return FlyChatFlutterPlatform.instance.startVideoCapture(flyCallback);
}