Package us.zoom.sdk
Class ZoomVideoSDK
java.lang.Object
us.zoom.sdk.ZoomVideoSDK
Zoom Video SDK API manager. Main singleton object that controls the video session creation, event callbacks and other main features of video SDK.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addListener
(ZoomVideoSDKDelegate listener) Register a listener for session events.abstract int
Cleans all exported logs.abstract int
cleanup()
Clean up Zoom Video SDKabstract String
Exports a log file to local disk.abstract ZoomVideoSDKAudioHelper
Returns an instance to manage audio controls related to the current video SDK session.abstract ZoomVideoSDKAudioSettingHelper
Get audio setting helper.abstract ZoomVideoSDKChatHelper
Returns an instance to send and receive chat messages within video SDK session participants.abstract ZoomVideoSDKCmdChannel
Returns an instance to use command channel features during a video SDK session.abstract ZoomVideoSDKCRCHelper
Get CRC helper object.abstract ZoomVideoSDKIncomingLiveStreamHelper
Get incoming live stream helper object.static ZoomVideoSDK
Returns ZoomVideoSDK instance.abstract ZoomVideoSDKLiveStreamHelper
Returns an instance to manage live streaming during a video SDK session.abstract ZoomVideoSDKLiveTranscriptionHelper
Get the user's live transcription helper object.abstract ZoomVideoSDKMaskHelper
Get mask helper Object.abstract ZoomVideoSDKPhoneHelper
Returns an instance to manage phone invitations during a video SDK session.abstract ZoomVideoSDKRecordingHelper
Returns an instance to manage cloud recordings during a video SDK session.abstract String
Returns Zoom SDK internal versionabstract ZoomVideoSDKSession
Returns the current session information.abstract ZoomVideoSDKShareHelper
Returns an instance to manage screen sharing during a video SDK session.abstract ZoomVideoSDKSubSessionHelper
Get the subsession helper object.abstract ZoomVideoSDKTestAudioDeviceHelper
Get test audio device helper.abstract ZoomVideoSDKUserHelper
Returns an instance to manage users present in a video SDK session.abstract ZoomVideoSDKVideoHelper
Returns an instance to manage cameras and video during a video SDK session.abstract ZoomVideoSDKVirtualBackgroundHelper
Returns an instance to manage virtual background during a video SDK session.abstract int
initialize
(android.content.Context context, ZoomVideoSDKInitParams params) Initialize the Zoom SDK with the appropriate parameters in theZoomVideoSDKInitParams
object.abstract boolean
Check if there is an active session between participants.abstract ZoomVideoSDKSession
Call this method to join a session with the appropriate ZoomVideoSDKSessionContext parameters.abstract int
leaveSession
(boolean end) Call this method to leave a session previously joined through joinSession method call.abstract void
removeListener
(ZoomVideoSDKDelegate listener) Unregister a listener for session events.
-
Constructor Details
-
ZoomVideoSDK
public ZoomVideoSDK()
-
-
Method Details
-
getInstance
Returns ZoomVideoSDK instance.- Returns:
- ZoomVideoSDK instance
-
cleanup
public abstract int cleanup()Clean up Zoom Video SDK- Returns:
- Error Code
ZoomVideoSDKErrors
-
initialize
@MainThread public abstract int initialize(android.content.Context context, ZoomVideoSDKInitParams params) Initialize the Zoom SDK with the appropriate parameters in theZoomVideoSDKInitParams
object.Note: This method must be called on the main thread, otherwise an exception
ZoomVideoSDKWrongThreadException
will be thrown- Parameters:
context
- Android contextparams
- Parameters for init zoom sdkZoomVideoSDKInitParams
- Returns:
- Error Code
-
addListener
Register a listener for session events.- Parameters:
listener
- A listener class that groups together all the callbacks related to a session.
-
removeListener
Unregister a listener for session events.- Parameters:
listener
- A listener class that groups together all the callbacks related to a session.
-
joinSession
Call this method to join a session with the appropriate ZoomVideoSDKSessionContext parameters. When successful, the SDK will attempt to join a session. Use the callbacks in the listener to confirm whether the SDK actually joined.- Parameters:
params
- Parameters for init zoom sdkZoomVideoSDKSessionContext
- Returns:
- Session
ZoomVideoSDKSession
-
leaveSession
public abstract int leaveSession(boolean end) Call this method to leave a session previously joined through joinSession method call. When successful, the SDK will attempt to leave a session. Use the callbacks in the listener to confirm whether the SDK actually left.- Parameters:
end
- true if the host should end the entire session, or false if the host should just leave the session.- Returns:
- Error Code
ZoomVideoSDKErrors
-
getSession
Returns the current session information.- Returns:
- session information
ZoomVideoSDKSession
-
isInSession
public abstract boolean isInSession()Check if there is an active session between participants.- Returns:
- true if there is; false if not
-
getSDKVersion
Returns Zoom SDK internal version- Returns:
- SDK version
-
getAudioHelper
Returns an instance to manage audio controls related to the current video SDK session.- Returns:
ZoomVideoSDKAudioHelper
-
getTestAudioDeviceHelper
Get test audio device helper.- Returns:
ZoomVideoSDKTestAudioDeviceHelper
-
getVideoHelper
Returns an instance to manage cameras and video during a video SDK session.- Returns:
ZoomVideoSDKVideoHelper
-
getAudioSettingHelper
Get audio setting helper. -
getUserHelper
Returns an instance to manage users present in a video SDK session.- Returns:
ZoomVideoSDKUserHelper
-
getLiveStreamHelper
Returns an instance to manage live streaming during a video SDK session.- Returns:
ZoomVideoSDKLiveStreamHelper
-
getChatHelper
Returns an instance to send and receive chat messages within video SDK session participants.- Returns:
ZoomVideoSDKChatHelper
-
getCmdChannel
Returns an instance to use command channel features during a video SDK session.- Returns:
- A
ZoomVideoSDKCmdChannel
instance.
-
getRecordingHelper
Returns an instance to manage cloud recordings during a video SDK session.- Returns:
- A
ZoomVideoSDKRecordingHelper
instance.
-
getPhoneHelper
Returns an instance to manage phone invitations during a video SDK session.- Returns:
ZoomVideoSDKPhoneHelper
-
getVirtualBackgroundHelper
Returns an instance to manage virtual background during a video SDK session.- Returns:
ZoomVideoSDKVirtualBackgroundHelper
-
getCRCHelper
Get CRC helper object.- Returns:
- If the function succeeds, the return value is the CRC helper object. Otherwise returns NULL. For more details, see
ZoomVideoSDKCRCHelper
-
getLiveTranscriptionHelper
Get the user's live transcription helper object.- Returns:
- If the function succeeds, the return value is the live transcription helper object. Otherwise, this function returns NULL.
For more information, see
ZoomVideoSDKLiveTranscriptionHelper
.
-
getIncomingLiveStreamHelper
Get incoming live stream helper object.- Returns:
- If the function succeeds, the return value is the incoming live stream helper object. Otherwise returns null.
For more details, see
ZoomVideoSDKIncomingLiveStreamHelper
-
exportLog
Exports a log file to local disk.- Returns:
- If the function succeeds, the return value is the exported log file path.
-
cleanAllExportedLogs
public abstract int cleanAllExportedLogs()Cleans all exported logs.- Returns:
- If the function succeeds, the return value is ZoomVideoSDKErrors_Success.Otherwise the function fails.To get extended error information, see
ZoomVideoSDKErrors
-
getMaskHelper
Get mask helper Object.- Returns:
- If the function succeeds, the return value is the mask helper object. Otherwise returns NULL. For more details, see
ZoomVideoSDKMaskHelper
.
-
getSubSessionHelper
Get the subsession helper object. This interface can only be called by the host or a manager.- Returns:
- If the function succeeds, the return value is the subsession helper object. Otherwise returns nullptr. For more details, see
ZoomVideoSDKSubSessionHelper
.
-