stopVideoRecording method
void
stopVideoRecording(
- BuildContext context,
- Color IconBackGroundColor,
- dynamic onDataVideoReceived()
Implementation
void stopVideoRecording(BuildContext context, Color IconBackGroundColor,
Function(String) onDataVideoReceived) async {
XFile videoPath = await _cameraController.stopVideoRecording();
isRecording = false;
Navigator.push(
context,
MaterialPageRoute(
builder: (builder) => VideoViewPage(
path: videoPath.path,
IconBackGroundColor: IconBackGroundColor,
onDataVideoReceived: onDataVideoReceived,
),
),
);
notifyListeners();
}