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 |
This canvas type. | |
(ZoomVideoSDKVideoStatus *_Nullable) | - videoStatus |
The user video status. | |
(ZoomVideoSDKShareStatus *_Nullable) | - shareStatus |
The user share status. | |
(ZoomVideoSDKError) | - subscribeWithView:aspectMode:andResolution: |
Subscribe to the user's video or share view. | |
(ZoomVideoSDKError) | - subscribeWithPiPView:aspectMode:andResolution: |
Subscribe to the user's video or share view in Picture-in-Picture mode for video calls. | |
(ZoomVideoSDKError) | - unSubscribeWithView: |
Call the function to unsubscribe video or share data. | |
(ZoomVideoSDKError) | - setAspectMode:toView: |
Set the video aspect mode. | |
(ZoomVideoSDKError) | - setResolution:toView: |
Set the video resolution. | |
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 15 of file ZoomVideoSDKVideoCanvas.h.
- (ZoomVideoSDKVideoType) canvasType |
This canvas type.
- (ZoomVideoSDKError) setAspectMode: | (ZoomVideoSDKVideoAspect) | aspect | |
toView: | (UIView *_Nullable) | view |
Set 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 |
Set the video resolution.
resolution | The video resolution. Valid only for video canvas |
view | The UIView object to render video. |
- (ZoomVideoSDKShareStatus *_Nullable) shareStatus |
The user share status.
- (ZoomVideoSDKError) subscribeWithPiPView: | (UIView *_Nullable) | view | |
aspectMode: | (ZoomVideoSDKVideoAspect) | aspect | |
andResolution: | (ZoomVideoSDKVideoResolution) | resolution |
Subscribe to the user's video or share view in Picture-in-Picture mode for video calls.
view | the object of UIView, that's you need render data. |
aspect | the render's aspect. |
resolution | Specify a render's resolution, valid only for video canvas. |
- (ZoomVideoSDKError) subscribeWithView: | (UIView *_Nullable) | view | |
aspectMode: | (ZoomVideoSDKVideoAspect) | aspect | |
andResolution: | (ZoomVideoSDKVideoResolution) | resolution |
Subscribe to the user's video or share view.
view | the object of UIView, that's you need render data. |
aspect | the render's aspect. |
resolution | Specify a render's resolution, valid only for video canvas. |
- (ZoomVideoSDKError) unSubscribeWithView: | (UIView *_Nullable) | view |
Call the function to unsubscribe video or share data.
- (ZoomVideoSDKVideoStatus *_Nullable) videoStatus |
The user video status.