Contact Center SDK for iOS API reference
Loading...
Searching...
No Matches
<ZoomCCVideoService> Protocol Reference

Video service interface. More...

#include <ZoomCCInterface.h>

Inheritance diagram for <ZoomCCVideoService>:
<ZoomCCService>

Instance Methods

(void) - endVideo
 Forcibly end to a video engagement.
(BOOL) - handleRejoinVideoOpenURL:item:videoDelegate:complete:
 Handle to rejoin a video session that a user joined previously with the URL param from the "UIApplicationDelegate::application:openURL:options" method.
(BOOL) - handleShortLinkVideoURL:item:videoDelegate:complete:
 Handles a Zoom Contact Center short link and prepares the UI for joining the associated video engagement.
Instance Methods inherited from <ZoomCCService>
(void) - initializeWithItem:
 Initializes the service.
(void) - uninitialize
 Used to uninitialize service.
(BOOL) - login
 When calling method "initializeWithItem:", call this method to request to login to server.
(BOOL) - logout
 When done using the service, call this method to disconnect from the server.
(void) - fetchUI:
 Gets the UIViewcontroller instance of the service, which is then used to customize the display.

Properties

ZoomCCVideoPreviewOption videoPreviewOptions
 Indicates if a video preview is available in the waiting room before a user enters the video session. See details in the definition of ZoomCCVideoPreviewOption.
BOOL autoJoinWhenVideoCreated
 Indicates if when agent accept the video request, a user will auto-join the video session. When this property is set to YES, a user will auto-join the video session. When set to No, a user won't auto-join the video session.
id< ZoomCCServiceDelegate > videoDelegate
 The video channel delegate.
Properties inherited from <ZoomCCService>
ZoomCCItem * item
 Retrieves information about the service.
ZoomCCSDKStatus status
 Retrieves the current service status.
BOOL inEngagement
 Retrieves the service's current engagement status.
NSString * engagementId
 Retrieves the service's engagement ID.

Detailed Description

Video service interface.

Method Documentation

◆ endVideo

- (void) endVideo

Forcibly end to a video engagement.

Discussion:
When this method is called, it closes the view created by the SDK, then returns to the application view. The service instances created inside ZoomCCSDK are released after this method is called.

◆ handleRejoinVideoOpenURL:item:videoDelegate:complete:

- (BOOL) handleRejoinVideoOpenURL: (NSURL *) rejoinURL
item: (ZoomCCItem *) item
videoDelegate: (id< ZoomCCServiceDelegate >) videoDelegate
complete: (void(^)(UIViewController *_Nonnull viewController)) complete 

Handle to rejoin a video session that a user joined previously with the URL param from the "UIApplicationDelegate::application:openURL:options" method.

Discussion:
When a user is in a video session, pop up an alert for the user. When a user chooses to leave and rejoin, the current video session is ended and the user will join a new video session created from "rejoinURL", and the complete block will be called. When a user selects the alert's cancel option, the user stays in the current video session.

When user isn't in a video session, we will create a video session from the "rejoinURL" internally and the complete block will be called.

Parameters
rejoinURLThe URL that contains info to initialize a video session customer entered before.
itemThe item with entryId and channel(video).
videoDelegateVideo delegate to receive callbacks.
completeWhen a video session is initialized, the compete block will be called and the param viewController is the video entry page that developers should push from their view.

◆ handleShortLinkVideoURL:item:videoDelegate:complete:

- (BOOL) handleShortLinkVideoURL: (NSURL *) url
item: (ZoomCCItem *) item
videoDelegate: (id< ZoomCCServiceDelegate >) videoDelegate
complete: (void(^)(UIViewController *_Nonnull viewController)) complete 

Handles a Zoom Contact Center short link and prepares the UI for joining the associated video engagement.

Discussion:
The SDK resolves the short link, extracts the video join information, and initializes a video service with the specified item. When the video entry page is ready, the complete block is called.

If the user is already in a video session, the SDK displays an alert that allows the user to either stay in the current session or leave it and join the session associated with the short link. Errors that occur while resolving or processing the short link are reported through videoDelegate. When joins within error occur, we call back the error informaion on the delegate method onService:error:detail:description.

Parameters
urlThe Zoom Contact Center short link used to join a video engagement. This URL can come from the system pasteboard or the developer's application context. For example: https://s.zoom.us/cc/bPlPdQs0K.
itemThe item used to initialize the video service.
videoDelegateThe delegate that receives video service callbacks.
completeCalled after the video service is initialized. The viewController parameter is the video entry page where the application should present.
Returns
Function returns YES if the short link is valid, accepted, and handling starts. Otherwise, this function fails and returns NO.

The documentation for this protocol was generated from the following file: