11#if UNITY_STANDALONE_OSX
12 private MacZMVideoSDK _videoSDK =
null;
14 private AndroidZoomVideoSDK _videoSDK =
null;
16 private IOSZMVideoSDK _videoSDK =
null;
17#elif UNITY_STANDALONE_WIN
18 private WindowsZoomVideoSDK _videoSDK =
null;
27#if UNITY_STANDALONE_OSX
28 _videoSDK = MacZMVideoSDK.Instance;
30 _videoSDK = AndroidZoomVideoSDK.Instance;
32 _videoSDK = IOSZMVideoSDK.Instance;
33#elif UNITY_STANDALONE_WIN
34 _videoSDK = WindowsZoomVideoSDK.Instance;
36 Debug.Log(
"Platform not supported.");
54 _videoSDK.Initialize(zmVideoSDKInitParams, callback);
60 public void CleanUp(Action<ZMVideoSDKErrors> callback)
62 _videoSDK.Cleanup(callback);
71 _videoSDK.AddListener(videoSDKDelegate);
80 _videoSDK.RemoveListener(videoSDKDelegate);
91 _videoSDK.JoinSession(zmVideoSDKSessionContext, callback);
102 _videoSDK.LeaveSession(end, callback);
115 throw new NullReferenceException(
"GetSessionInfo returns null");
126 return _videoSDK.IsInSession();
135 return _videoSDK.GetSdkVersion();
147 throw new NullReferenceException(
"GetAudioHelper returns null");
161 throw new NullReferenceException(
"GetVideoHelper returns null");
175 throw new NullReferenceException(
"GetUserHelper returns null");
189 throw new NullReferenceException(
"GetChatHelper returns null");
204 throw new NullReferenceException(
"GetRecordingHelper returns null");
218 throw new NullReferenceException(
"GetShareHelper returns null");
Audio control interface SeeZMVideoSDK#GetAudioHelper().
Zoom Video SDK API manager. Main singleton object that controls the video session creation,...
ZMVideoSDKSession GetSessionInfo()
Returns the current session information.
void RemoveListener(IZMVideoSDKDelegate videoSDKDelegate)
Remove a listener for session events.
bool IsInSession()
Check if there is an active session between participants.
void CleanUp(Action< ZMVideoSDKErrors > callback)
Clean up ZOOM Video SDK.
void LeaveSession(bool end, Action< ZMVideoSDKErrors > callback)
Call this method to leave a session previously joined through joinSession method call....
ZMVideoSDKRecordingHelper GetRecordingHelper()
ZMVideoSDKShareHelper GetShareHelper()
void JoinSession(ZMVideoSDKSessionContext zmVideoSDKSessionContext, Action< ZMVideoSDKErrors > callback)
Call this method to join a session with the appropriate ZMVideoSDKSessionContext parameters....
ZMVideoSDKAudioHelper GetAudioHelper()
Returns an instance to manage audio controls related to the current video SDK session.
void Initialize(ZMVideoSDKInitParams zmVideoSDKInitParams, Action< ZMVideoSDKErrors > callback)
Initialize the Zoom Video SDK with the appropriate parameters in the ZMVideoSDKInitParams structure.
ZMVideoSDKChatHelper GetChatHelper()
Returns an instance to send and receive chat messages within video SDK session participants.
static readonly ZMVideoSDK instance
ZMVideoSDKVideoHelper GetVideoHelper()
Returns an instance to manage cameras and video during a video SDK session.
void AddListener(IZMVideoSDKDelegate videoSDKDelegate)
Add a listener for session events.
string GetSDKVersion()
Returns the sdk version.
static ZMVideoSDK Instance
ZMVideoSDKUserHelper GetUserHelper()
Returns an instance to manage cameras and video during a video SDK session.
Session instance object See ZMVideoSDK#JoinSession(ZMVideoSDKSessionContext).
User control interface. See ZMVideoSDK#GetUserHelper().
An interface to control video and manage cameras during a video session. See ZMVideoSDK#GetVideoHelpe...
A listener class that groups together the callbacks related to a session. See ZoomVideoSDK#addListene...