2using System.Collections.Generic;
12#if UNITY_STANDALONE_OSX
13 private MacZMVideoSDKVideoHelper _videoSDKVideoHelper =
null;
16 _videoSDKVideoHelper = videoSDKVideoHelper;
19 private IOSZMVideoSDKVideoHelper _videoSDKVideoHelper =
null;
22 _videoSDKVideoHelper = videoSDKVideoHelper;
25 private AndroidZoomVideoSDKVideoHelper _videoSDKVideoHelper =
null;
28 AndroidZoomVideoSDKVideoHelper androidVideoHelper =
new AndroidZoomVideoSDKVideoHelper(videoSDKVideoHelper);
29 _videoSDKVideoHelper = androidVideoHelper;
32 public AndroidZoomVideoSDKVideoHelper VideoSDKVideoHelper
34 get {
return _videoSDKVideoHelper; }
36#elif UNITY_STANDALONE_WIN
37 private WindowsZoomVideoSDKVideoHelper _videoSDKVideoHelper =
null;
40 _videoSDKVideoHelper = videoSDKVideoHelper;
48 public void StartVideo(Action<ZMVideoSDKErrors> callback)
50 _videoSDKVideoHelper.StartVideo(callback);
57 public void StopVideo(Action<ZMVideoSDKErrors> callback)
59 _videoSDKVideoHelper.StopVideo(callback);
69 _videoSDKVideoHelper.RotateMyVideo(rotation, callback);
78 _videoSDKVideoHelper.SwitchCamera(callback);
87 return _videoSDKVideoHelper.GetNumberOfCameras();
96 return _videoSDKVideoHelper.GetCameraList();
108 return _videoSDKVideoHelper.CanControlCamera(deviceID);
120 return _videoSDKVideoHelper.TurnCameraLeft(range, deviceID);
132 return _videoSDKVideoHelper.TurnCameraRight(range, deviceID);
144 return _videoSDKVideoHelper.TurnCameraUp(range, deviceID);
156 return _videoSDKVideoHelper.TurnCameraDown(range, deviceID);
168 return _videoSDKVideoHelper.ZoomCameraIn(range, deviceID);
180 return _videoSDKVideoHelper.ZoomCameraOut(range, deviceID);
191 _videoSDKVideoHelper.SetVideoQualityPreference(preferenceSetting, callback);
203 return _videoSDKVideoHelper.EnableMultiStreamVideo(cameraDeviceID, customDeviceName);
213 return _videoSDKVideoHelper.DisableMultiStreamVideo(cameraDeviceID);
223 return _videoSDKVideoHelper.GetDeviceIDByMyPipe(zmVideoSDKRawDataPipe);
237 return _videoSDKVideoHelper.IsMyVideoMirrored();
246 return _videoSDKVideoHelper.IsOriginalAspectRatioEnabled();
257 _videoSDKVideoHelper.EnableOriginalAspectRatio(bEnabled, callback);
267 return _videoSDKVideoHelper.SelectCamera(cameraDeviceID);
Interface for user to subscribe@unSubscribe video raw data. ZMVideoSDKUser#GetVideoPipe().
An interface to control video and manage cameras during a video session. See ZMVideoSDK#GetVideoHelpe...
void StopVideo(Action< ZMVideoSDKErrors > callback)
Call this method to stop sending local video data from the camera.
ZMVideoSDKErrors ZoomCameraIn(uint range, string deviceID)
Zoom the camera in.
ZMVideoSDKErrors TurnCameraUp(uint range, string deviceID)
Tilt the camera up.
void StartVideo(Action< ZMVideoSDKErrors > callback)
Call this method to start sending local video data from the camera.
ZMVideoSDKErrors TurnCameraLeft(uint range, string deviceID)
Pan the camera to the left.
ZMVideoSDKErrors ZoomCameraOut(uint range, string deviceID)
Zoom the camera out.
ZMVideoSDKErrors TurnCameraRight(uint range, string deviceID)
Pan the camera to the right.
List< ZMVideoSDKCameraDevice > GetCameraList()
Returns a collection of camera devices available to share the video as an object of type WebCamDevice...
bool IsOriginalAspectRatioEnabled()
Check if original aspect ratio is enabled.
void SwitchCamera(Action< bool > callback)
Switch to the next available camera.
void SetVideoQualityPreference(ZMVideoSDKPreferenceSetting preferenceSetting, Action< ZMVideoSDKErrors > callback)
Automatically adjust user's video resolution and frame-rate.
bool DisableMultiStreamVideo(string cameraDeviceID)
Disable multiple stream video.
uint GetNumberOfCameras()
Returns number of cameras available to share the video.
void RotateMyVideo(ZMVideoRotation rotation, Action< bool > callback)
Call this method to rotate the video when the device is rotated.
bool SelectCamera(string cameraDeviceID)
This function is used to select the camera device.
bool CanControlCamera(string deviceID)
string GetDeviceIDByMyPipe(ZMVideoSDKRawDataPipe zmVideoSDKRawDataPipe)
Get the device ID associated with my multi-camera pipe.
ZMVideoSDKErrors
Check whether the current user has permission to control the camera.
bool EnableMultiStreamVideo(string cameraDeviceID, string customDeviceName)
Enable multiple stream video if you have multiple cameras and other participants can see multiple vid...
void EnableOriginalAspectRatio(bool bEnabled, Action< bool > callback)
This function is used to set the aspect ratio of the video sent out.
bool IsMyVideoMirrored()
Check if my video is mirrored.
ZMVideoSDKErrors TurnCameraDown(uint range, string deviceID)
Tilt the camera down.