pauseVideo static method

void pauseVideo(
  1. bool pauseVideo, {
  2. required dynamic onSuccess(
    1. String onSuccess
    ),
  3. required dynamic onError(
    1. CometChatCallsException excep
    ),
})

Pauses the video.

  • pauseVideo: Whether to pause the video.
  • onSuccess: A callback function that is called when the video is successfully paused.
  • onError: A callback function that is called when an error occurs while pausing the video.

Example: CometChatCalls.pauseVideo(true, onSuccess: (message) { // The video was successfully paused. }, onError: (error) { // An error occurred while pausing the video. }, );

Implementation

static void pauseVideo(bool pauseVideo, {
  required Function(String onSuccess) onSuccess,
  required Function(CometChatCallsException excep) onError
}) {
  CometchatcallsPluginPlatform.instance.pauseVideo(pauseVideo, onSuccess, onError);
}