For the complete documentation index, see llms.txt. This page is also available as Markdown.

Video Call - Videocall

Introduction

Face Capture is performed with the VideoCall Component.

This component manages communication between a user and an agent (video assistance). Its main processes are:

  • Internal management of the camera, microphone, and permissions.

  • Connection to the services.

The Simplified Launch section details the steps required for basic SDK integration. This section provides information on launching this component.

Dependency

The component-specific dependency is:

implementation "com.facephi.androidsdk:videocall_component:$version"

Available Controllers

Controller

Description

VideoCallController

Main video call controller

StopVideoCallController

Stop screen sharing and the ongoing call

Simplified Launch

Once the SDK has been initialized and a new operation has been created, the component can be launched. Any of its controllers can be used to run its functionality.

Launching:

Basic Configuration

To launch the current component, create a VideoCallConfigurationData object, which will configure the component's controller.

The required basic configuration does not need any parameters:

Receiving the result

The launch returns the information in SdkResult format, allowing you to distinguish between a successful and an unsuccessful launch:

Receiving errors

Errors are returned as a 'VideoCallError' object.

List of errors:

  • VCL_ACTIVITY_RESULT_MSG_ERROR: The activity result is incorrect

  • VCL_APPLICATION_CONTEXT_ERROR: The required application context is null

  • VCL_CANCEL_BY_USER: The user canceled the process

  • VCL_CANCEL_LAUNCH: The SDK was canceled entirely

  • VCL_COMPONENT_LICENSE_ERROR: The component license is invalid

  • VCL_EMPTY_LICENSE: The license String is empty

  • VCL_FACE_DETECTION_TIMEOUT: No face was detected

  • VCL_FETCH_DATA_ERROR: Error retrieving the result

  • VCL_FLOW_ERROR: Error in the flow process

  • VCL_INITIALIZATION_ERROR: Initialization error

  • VCL_MANAGER_NOT_INITIALIZED: The managers are null

  • VCL_NETWORK_CONNECTION: Internet connection error

  • VCL_NO_DATA_ERROR: The input data is null

  • VCL_OPERATION_NOT_CREATED: There is no operation in progress

  • VCL_PERMISSION_ERROR: The user denied the permissions

  • VCL_SCREEN_SHARING_PERMISSION_ERROR: The user denied permission to share the screen

  • VCL_SOCKET_ERROR: Error connecting to the services

  • VCL_TIMEOUT: Process timeout

  • VCL_VIDEO_ERROR: Error processing the video

  • VCL_UNKNOWN_ERROR: Unknown error

  • VCL_VIDEO_CALL_ACTIVE: Cannot start because a video call is already active

  • VCL_VIDEO_RECORDING_ACTIVE: Cannot start because the video recording process is active

Receiving the successful result - data

In the SdkResult.Success - data, we have the VideoCallResult class, which has a single property.

  • sharingScreen: Indicates whether the call is still active with screen sharing enabled.

When the result is Success and the flag sharingScreen is active, screen sharing can be enabled.


Advanced information

This section provides more information about the component.

Advanced component configuration

To launch the current component, create a VideoCallConfigurationData object, which will configure the component's controller.

All the fields that are part of this class are described below.

The fields included in the configuration usually do not need to be provided because they are populated internally using the license in use.

These fields are usually provided only when the server is On-Premise.

  • url: Path to the video socket.

  • apiKey: ApiKey required to connect to the video socket.

  • tenantId: Identifier of the tenant referring to the current client, required to connect to the video service.

  • activateScreenSharing: Enable the screen-sharing option during the call.

  • timeout: How long to wait for an agent to answer the call (ms).

Screen sharing

When the user activates the screen-sharing feature, the result "sharingScreen = true" is received by the controller. This indicates that the call is still ongoing.

Use the StopVideoCallController to end the call.

The possible states are:

The state that indicates the call has fully ended is FINISH.


Component customization

In addition to the changes that can be made at the SDK level (which are explained in the document on SDK Customization), this particular component also allows its interface to be modified.

Text

The text can be customized by adding an XML resource file to the client application and overriding the default values.

Colors

Animations

To modify the SDK animations (Lottie), include animations with the same names in the application's res/raw/ folder.

External views

The component screens can be fully customized while retaining their functionality and navigation. To do so, implement the following interfaces:

Error diagnostic screen:

Once the classes implementing the interfaces have been created, you can add the "customViews" parameter when launching the component so they are used in the SDK.

Last updated