Unity Video SDK API Reference Documentation
|
An interface to control video and manage cameras during a video session. See ZMVideoSDK#GetVideoHelper()
.
More...
Public Member Functions | |
void | StartVideo (Action< ZMVideoSDKErrors > callback) |
Call this method to start sending local video data from the camera. | |
void | StopVideo (Action< ZMVideoSDKErrors > callback) |
Call this method to stop sending local video data from the camera. | |
void | RotateMyVideo (ZMVideoRotation rotation, Action< bool > callback) |
Call this method to rotate the video when the device is rotated. | |
void | SwitchCamera (Action< bool > callback) |
Switch to the next available camera. | |
uint | GetNumberOfCameras () |
Returns number of cameras available to share the video. | |
List< ZMVideoSDKCameraDevice > | GetCameraList () |
Returns a collection of camera devices available to share the video as an object of type WebCamDevice. | |
bool | CanControlCamera (string deviceID) |
ZMVideoSDKErrors | TurnCameraLeft (uint range, string deviceID) |
Pan the camera to the left. | |
ZMVideoSDKErrors | TurnCameraRight (uint range, string deviceID) |
Pan the camera to the right. | |
ZMVideoSDKErrors | TurnCameraUp (uint range, string deviceID) |
Tilt the camera up. | |
ZMVideoSDKErrors | TurnCameraDown (uint range, string deviceID) |
Tilt the camera down. | |
ZMVideoSDKErrors | ZoomCameraIn (uint range, string deviceID) |
Zoom the camera in. | |
ZMVideoSDKErrors | ZoomCameraOut (uint range, string deviceID) |
Zoom the camera out. | |
void | SetVideoQualityPreference (ZMVideoSDKPreferenceSetting preferenceSetting, Action< ZMVideoSDKErrors > callback) |
Automatically adjust user's video resolution and frame-rate. | |
bool | EnableMultiStreamVideo (string cameraDeviceID, string customDeviceName) |
Enable multiple stream video if you have multiple cameras and other participants can see multiple videos of you. | |
bool | DisableMultiStreamVideo (string cameraDeviceID) |
Disable multiple stream video. | |
string | GetDeviceIDByMyPipe (ZMVideoSDKRawDataPipe zmVideoSDKRawDataPipe) |
Get the device ID associated with my multi-camera pipe. | |
bool | IsMyVideoMirrored () |
Check if my video is mirrored. | |
bool | IsOriginalAspectRatioEnabled () |
Check if original aspect ratio is enabled. | |
void | EnableOriginalAspectRatio (bool bEnabled, Action< bool > callback) |
This function is used to set the aspect ratio of the video sent out. | |
bool | SelectCamera (string cameraDeviceID) |
This function is used to select the camera device. | |
Data Fields | |
ZMVideoSDKErrors | |
Check whether the current user has permission to control the camera. | |
An interface to control video and manage cameras during a video session. See ZMVideoSDK#GetVideoHelper()
.
Definition at line 9 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Definition at line 106 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Disable multiple stream video.
cameraDeviceID | The camera id which you want to disable. |
Definition at line 211 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Enable multiple stream video if you have multiple cameras and other participants can see multiple videos of you.
cameraDeviceID | The camera ID for the camera to enable. |
customDeviceName | The custom device name of the camera. If this parameter is not passed, a default name will be generated. |
Definition at line 201 of file ZMVideoSDKVideoHelper.cs.
|
inline |
This function is used to set the aspect ratio of the video sent out.
bEnabled | False means the aspect ratio is 16:9, true means that using the original aspect ratio of video | |
[out] | callback | a callback function to return true if the function succeeds, otherwise false. |
Definition at line 255 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Returns a collection of camera devices available to share the video as an object of type WebCamDevice.
Definition at line 94 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Get the device ID associated with my multi-camera pipe.
zmVideoSDKRawDataPipe | My multi-camera pipe |
Definition at line 221 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Returns number of cameras available to share the video.
Definition at line 85 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Check if my video is mirrored.
Definition at line 235 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Check if original aspect ratio is enabled.
Definition at line 244 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Call this method to rotate the video when the device is rotated.
rotation | the rotation of the video. 0: no rotation (natural orientation); 1: rotate 90 degrees; 2: rotate 180 degrees; 3: rotate 270 degrees. | |
[out] | callback | a callback function to return the ZMVideoSDKErrors status code of this method. |
Definition at line 67 of file ZMVideoSDKVideoHelper.cs.
|
inline |
This function is used to select the camera device.
cameraDeviceID | the device id |
Definition at line 265 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Automatically adjust user's video resolution and frame-rate.
[out] | preferenceSetting | Specifies the video quality preference. when setting custom modes, the maximum and minimum frame rates are provided by the developer. |
[out] | callback | A callback function to return the ZMVideoSDKErrors status code. |
Definition at line 189 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Call this method to start sending local video data from the camera.
[out] | callback | a callback function to return the ZMVideoSDKErrors status code of this method. |
Definition at line 48 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Call this method to stop sending local video data from the camera.
[out] | callback | a callback function to return the ZMVideoSDKErrors status code of this method. |
Definition at line 57 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Switch to the next available camera.
[out] | callback | a callback function to return true if the function succeeds, otherwise false. |
Definition at line 76 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Tilt the camera down.
range | Rotation range, 10 <= range <= 100. |
deviceID | The camera device ID to operate.The default is the main camera ID. |
Definition at line 154 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Pan the camera to the left.
range | Rotation range, 10 <= range <= 100. |
deviceID | The camera device ID to rotate. The default is the main camera ID. |
Definition at line 118 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Pan the camera to the right.
range | Rotation range, 10 <= range <= 100. |
deviceID | The camera device ID to rotate.The default is the main camera ID. |
Definition at line 130 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Tilt the camera up.
range | Rotation range, 10 <= range <= 100. |
deviceID | The camera device ID to operate.The default is main camera ID. |
Definition at line 142 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Zoom the camera in.
range | Zoom range, 10 <= range <= 100. |
deviceID | The camera device ID to operate.The default is the main camera ID. |
Definition at line 166 of file ZMVideoSDKVideoHelper.cs.
|
inline |
Zoom the camera out.
range | Zoom range, 10 <= range <= 100. |
deviceID | The camera device ID to operate.The default is the main camera ID. |
Definition at line 178 of file ZMVideoSDKVideoHelper.cs.
ZMVideoSDKVideoHelper.ZMVideoSDKErrors |
Check whether the current user has permission to control the camera.
deviceID | The camera device ID to check. The default is the main camera ID. |
Definition at line 106 of file ZMVideoSDKVideoHelper.cs.