Video Recording
This component requires a minimum iOS13 version
Introduction
The Component handled in the current document is called VideoRecording Component. It is responsible for capturing the device screen in the background. It is mainly intended for recording the Onboarding process.
Dependencies
To avoid conflicts and compatibility issues, if you want to install the component in a project that contains an old version of the Facephi libraries (Widgets), these must be removed completely before installing the components of the SDKMobile.
CocoaPods
Currently, FacePhi libraries are distributed remotely through different dependency managers, in this case CocoaPods. The dependencies required that must have been previously installed (by adding them to the project's Podfile file) are:
pod 'FPHISDKMainComponent', '~> $VERSION'To install the Selphi component, the following entry must be included in the application's Podfile:
pod 'FPHISDKVideoRecordingComponent', '~> $VERSION'SPM
The mandatory dependencies that must have been installed previously are:
//HTTPS
https://github.com/facephi-clienters/SDK-SdkPackage-SPM.git
//SSH
[email protected]:facephi-clienters/SDK-SdkPackage-SPM.gitTo install the SELPHI component, it must be included in the project's modules:
Permissions
In the client application where the components will be integrated, it is necessary to include the following element in the file Info.plist when the recording is going to include audio:
Available controllers
Controller
Description
FVideoRecordingController
Main Video Recording controller
Controller declaration
Error handling
Errors will be returned as a 'VideoRecordingError' object.
Error list:
VRC_EMPTY_LICENSE: The String of license is empty
VRC_INITIALIZATION_ERROR: Initialization error
VRC_OPERATION_NOT_CREATED: There is no operation in progress
VRC_NETWORK_CONNECTION: Internet connection error
VRC_MIC_PERMISSION_DENIED: The user has denied the permissions
VRC_WEB_SOCKET_REQUEST_ERROR: Error in the connection to the services
VRC_UNKNOWN_ERROR: Unknown error
VRC_JOIN_CHANNEL_ERROR: Error in the connection with the channel
VRC_VIDEO_RECORDING_ACTIVE: Cannot start because the Video Recording process is active
VRC_QUICKTIME_RECORDING_ACTIVE: Cannot start because the recording process is active: an external application is already recording the screen
VRC_WRONG_CREDENTIALS_ERROR: The credentials for connecting to the Video Recording service are not correct
Last updated