Package 

Class VideoCapture

    • Method Detail

      • startRecording

        @RequiresPermission(value = Manifest.permission.RECORD_AUDIO) void startRecording(@NonNull() VideoCapture.OutputFileOptions outputFileOptions, @NonNull() VideoCapture.OnVideoCaptureCallback callback)

        Starts recording video, which continues until stopRecording iscalled.

        StartRecording() is asynchronous. User needs to check if any error occurs by setting the onError.

        Parameters:
        outputFileOptions - Location to save the video capture
        callback - Callback for when the recorded video saving completion or failure.
      • stopRecording

         void stopRecording()

        Stops recording video, this must be called after iscalled.

        stopRecording() is asynchronous API. User need to check if or onError be calledbefore startRecording.