CometChatOngoingCall
is a Component that provides users with a dedicated interface for managing real-time voice or video conversations. It includes features like a video display area for video calls, call controls for mic and camera management, participant information, call status indicators, and options for call recording and screen-sharing.
CometChatOngoingCall
being a custom component, offers versatility in its integration. It can be seamlessly launched via button clicks or any user-triggered action, enhancing the overall user experience and facilitating smoother interactions within the application.
Since CometChatOngoingCall
can be launched by adding the following code snippet into the XML layout file.
CometChatOngoingCall
within the XML code or in your activity or fragment then you’ll need to extract them and set them on the session ID and receiver type using the appropriate method and call the .startCall()
method to join the call.
CometChatOngoingCall
into your Activity and Fragment by adding the following code snippets into the respective classes.
setOnError
and improve error handling.
callSettingsBuilder
in the OnGoing Call
Component to customize the OnGoing Call. Numerous options are available to alter the builder to meet your specific needs. For additional details on CallSettingsBuilder
, please visit CallSettingsBuilder.
Component
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
Events emitted by the Ongoing Call component are as follows.
Event | Description |
---|---|
ccCallEnded | Triggers when the ongoing or outgoing call ends. |
Property | Description | Code |
---|---|---|
Background | Used to set the background color | .setBackground(@ColorInt int) |
Border Width | Used to set border | .setBorderWidth(int) |
Border Color | Used to set border color | .setBorderColor(@ColorInt int) |
Corner Radius | Used to set border radius | .setCornerRadius(float) |
Background | Used to set background Drawable | .setBackground(Drawable) |
Property | Description | Code |
---|---|---|
Call Type | Sets the type of call, distinguishing between audio and video calls. | .setCallType(String) |
Receiver Type | Specifies whether the call recipient is an individual user or a group. | .setReceiverType(String) |
Session ID | Sets the unique identifier for the session, essential for initiating a call. | .setSessionId(String) |
CometChatOngoingCall
component does not provide additional functionalities beyond this level of customization.