|
Video SDK for iOS API Reference
|
The video canvas is the display area of the video streams on the user’s local device. To instantiate a local video canvas instance and show the video stream of a user, simply initialize the ZoomVideoSDKVideoCanvas object, subscribe the userId of a specific user, and add it to your UIView. More...
#include <ZoomVideoSDKVideoCanvas.h>
Inherits NSObject.
Instance Methods | |
| (ZoomVideoSDKVideoType) | - canvasType |
| Gets the canvas type. | |
| (ZoomVideoSDKVideoStatus *_Nullable) | - videoStatus |
| Gets the user's video status. | |
| (ZoomVideoSDKShareStatus *_Nullable) | - shareStatus |
| Gets the user's share status. | |
| (ZoomVideoSDKError) | - subscribeWithView:aspectMode:andResolution: |
| Subscribes to the user's video or share view. | |
| (ZoomVideoSDKError) | - subscribeWithPiPView:aspectMode:andResolution: |
| Subscribes to the user's video or share view in Picture-in-Picture mode for video calls. | |
| (ZoomVideoSDKError) | - unSubscribeWithView: |
| Unsubscribes from video or share data. | |
| (ZoomVideoSDKError) | - setAspectMode:toView: |
| Sets the video aspect mode. | |
| (ZoomVideoSDKError) | - setResolution:toView: |
| Sets the video resolution. | |
| (UIImage *_Nullable) | - takeSnapshot: |
| Captures a snapshot of the current video frame from the specified UIView and returns it as a UIImage. This method captures the current frame being displayed in the video or share canvas. | |
The video canvas is the display area of the video streams on the user’s local device. To instantiate a local video canvas instance and show the video stream of a user, simply initialize the ZoomVideoSDKVideoCanvas object, subscribe the userId of a specific user, and add it to your UIView.
Definition at line 12 of file ZoomVideoSDKVideoCanvas.h.
| - (ZoomVideoSDKVideoType) canvasType |
Gets the canvas type.
References canvasType.
Referenced by canvasType.
| - (ZoomVideoSDKError) setAspectMode: | (ZoomVideoSDKVideoAspect) | aspect | |
| toView: | (UIView *_Nullable) | view |
Sets the video aspect mode.
| aspect | The aspect mode of video. |
| view | The UIView object to render video. |
| - (ZoomVideoSDKError) setResolution: | (ZoomVideoSDKVideoResolution) | resolution | |
| toView: | (UIView *_Nullable) | view |
Sets the video resolution.
| resolution | The video resolution. Valid only for video canvas. |
| view | The UIView object to render video. |
| - (ZoomVideoSDKShareStatus *_Nullable) shareStatus |
Gets the user's share status.
References shareStatus.
Referenced by shareStatus.
| - (ZoomVideoSDKError) subscribeWithPiPView: | (UIView *_Nullable) | view | |
| aspectMode: | (ZoomVideoSDKVideoAspect) | aspect | |
| andResolution: | (ZoomVideoSDKVideoResolution) | resolution |
Subscribes to the user's video or share view in Picture-in-Picture mode for video calls.
| view | The UIView object that you need to render data. |
| aspect | The render's aspect mode. |
| resolution | The render's resolution. Valid only for video canvas. |
| - (ZoomVideoSDKError) subscribeWithView: | (UIView *_Nullable) | view | |
| aspectMode: | (ZoomVideoSDKVideoAspect) | aspect | |
| andResolution: | (ZoomVideoSDKVideoResolution) | resolution |
Subscribes to the user's video or share view.
| view | The UIView object that you need to render data. |
| aspect | The render's aspect mode. |
| resolution | The render's resolution. Valid only for video canvas. |
| - (UIImage *_Nullable) takeSnapshot: | (UIView *_Nullable) | view |
Captures a snapshot of the current video frame from the specified UIView and returns it as a UIImage. This method captures the current frame being displayed in the video or share canvas.
| view | The UIView currently subscribed to this canvas. |
| - (ZoomVideoSDKError) unSubscribeWithView: | (UIView *_Nullable) | view |
Unsubscribes from video or share data.
| view | The UIView object to unsubscribe. |
| - (ZoomVideoSDKVideoStatus *_Nullable) videoStatus |
Gets the user's video status.
References videoStatus.
Referenced by videoStatus.