pauseVideo static method
void
pauseVideo(
- bool pauseVideo, {
- required dynamic onSuccess(
- String onSuccess
- required dynamic onError(
- 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);
}