Ongoing Call
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 view controller, 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.
pushViewController
function instead of presenting the view controller.setOnCallEnded
action is typically triggered when the call is ended, carrying out default actions. However, with the following code snippet, you can effortlessly customize or override this default behavior to meet your specific needs.
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.
Methods | Description | Code |
---|---|---|
setAudioModeButtonDisable | Disable the audio mode button | .setAudioModeButtonDisable(Bool) |
setAvatarMode | Set the avatar mode | .setAvatarMode("") |
setDefaultAudioMode | Set the default audio mode | .setDefaultAudioMode("") |
setDefaultLayout | Set the default layout | .setDefaultLayout(Bool) |
setDelegate | Set the calls events delegate | .setDelegate(CallsEventsDelegate) |
setEnableDraggableVideoTile | Enable draggable video tile | .setEnableDraggableVideoTile(Bool) |
setEnableVideoTileClick | Enable click actions on video tile | .setEnableVideoTileClick(Bool) |
setEndCallButtonDisable | Disable the end call button | .setEndCallButtonDisable(Bool) |
setIsAudioOnly | Set the call as audio only | .setIsAudioOnly(Bool) |
setIsSingleMode | Set the call as single mode | .setIsSingleMode(Bool) |
setMode | Set the mode | .setMode("NSString") |
setMuteAudioButtonDisable | Disable the mute audio button | .setMuteAudioButtonDisable(Bool) |
setPauseVideoButtonDisable | Disable the pause video button | .setPauseVideoButtonDisable(Bool) |
setShowRecordingButton | Show or hide the recording button | .setShowRecordingButton(Bool) |
setShowSwitchToVideoCall | Show or hide the switch to video call button | .setShowSwitchToVideoCall(Bool) |
setStartAudioMuted | Start with audio muted | .setStartAudioMuted(Bool) |
setStartRecordingOnCallStart | Start recording when the call starts | .setStartRecordingOnCallStart(Bool) |
setStartVideoMuted | Start with video muted | .setStartVideoMuted(Bool) |
setSwitchCameraButtonDisable | Disable the switch camera button | .setSwitchCameraButtonDisable(Bool) |
setVideoContainer | Set the video container | .setVideoContainer(NSMutableDictionary) |
setVideoSettings | Set the video settings | .setVideoSettings(NSMutableDictionary) |
NSMicrophoneUsageDescription
key with a descriptive string value in the app’s Info.plistComponent
. 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 is as follows.
Event | Description |
---|---|
onCallEnded | Triggers when the ongoing or outgoing call ends. |
Property | Description | Code |
---|---|---|
CallWorkFlow | Sets the call type to default and direct. | CallWorkFlow |
Session Id | Sets the user object for CometChatOngoingCall. | .set(sessionId: String) |
OngoingCall
component does not provide additional functionalities beyond this level of customization.