Video Recording
Introduction
Screen video recording is performed with the VideoRecording Component.
This component is responsible for capturing the device screen in the background. It is mainly oriented toward recording the Onboarding process.
Dependency
The specific component dependency is:
implementation "com.facephi.androidsdk:video_recording_component:$version"Available controllers
Controller
Description
FVideoRecordingController
Main video recording controller.
FStopVideoRecordingController
Controller to stop video recording.
Error handling
Errors will be returned as a 'VideoRecordingError' object.
List of errors:
Advanced configuration
The controller uses VideoRecordingConfigurationData to configure the connection to the video service and the recording behavior:
url: Path to the video socket. It is normally obtained from the License, except in On-Premise environments.apiKey: Key required for the connection to the video socket.tenantId: Identifier of the client tenant.enableAudio: Enables audio capture during screen recording. By defaultfalse. If provided astrue, Android requestsRECORD_AUDIObefore theMediaProjection; if the user denies or dismisses the permission, the component returnsVRC_PERMISSION_ERROR.
Receiving the successful result - data
In case of success, data contains a VideoRecordingResult.
state: Recording status.SHARINGindicates that the recording has started andFINISHindicates that it has been stopped successfully.
Last updated