Video SDK for MacOS API Reference
|
Main helper class managing sharing. More...
#include <ZMVideoSDKShareHelper.h>
Inherits NSObject.
Instance Methods | |
(ZMVideoSDKErrors) | - startShareView:shareOption: |
Start Share a window. | |
(BOOL) | - isShareViewValid: |
Determine if the application's window ID can be shared. | |
(ZMVideoSDKErrors) | - startShareScreen:shareOption: |
Start share screen. | |
(ZMVideoSDKErrors) | - startShareMultiScreen:shareOption: |
Start share multi-screen. | |
(ZMVideoSDKErrors) | - startShareComputerAudio |
Start sharing the computer audio only. | |
(ZMVideoSDKErrors) | - stopShare |
Stop view or screen share. | |
(ZMVideoSDKErrors) | - pauseShare |
Pause share. | |
(ZMVideoSDKErrors) | - resumeShare |
Resume share. | |
(BOOL) | - isSharingOut |
Determine whether the current user is sharing. | |
(BOOL) | - isScreenSharingOut |
Determine whether the current user is sharing the screen. | |
(BOOL) | - isOtherSharing |
Determine whether other user is sharing. | |
(ZMVideoSDKErrors) | - lockShare: |
Lock sharing the view or screen. Only the host can call this method. | |
(BOOL) | - isShareLocked |
Determine whether sharing the view or screen is locked. | |
(ZMVideoSDKErrors) | - enableMultiShare: |
Enable or disable participants can share simultaneously. | |
(BOOL) | - isMultiShareEnabled |
Determine whether multi share is enabled or not. | |
(ZMVideoSDKErrors) | - enableShareDeviceAudio: |
Enable or disable the computer sound when sharing, the SDK does not support sharing raw data audio, for example, when you've enabled virtual speaker. | |
(BOOL) | - isShareDeviceAudioEnabled |
Determine if the SDK has enabled share computer sound. This reflects the execution status of 'enableShareDeviceAudio' instead of 'startShareComputerAudio'. | |
(ZMVideoSDKErrors) | - enableOptimizeForSharedVideo: |
Enable or disable the optimization of frame rate, you can enable it when there is video in shared content. | |
(BOOL) | - isOptimizeForSharedVideoEnabled |
Determine if optimization for video is enabled. | |
(ZMVideoSDKErrors) | - startShare2ndCamera: |
Start sharing a camera feed specified by the cameraID as the second camera. | |
(ZMVideoSDKErrors) | - subscribeMyShareCamera: |
Subscribe to the raw data stream of the camera that is shared as the second camera. | |
(ZMVideoSDKErrors) | - unSubscribeMyShareCamera |
Unsubscribe to the raw data stream of the camera that is shared as the second camera. | |
(ZMVideoSDKErrors) | - startSharingExternalSource:audioSource: |
Shares an external source. | |
(ZMVideoSDKErrors) | - startSharingExternalSource:audioSource:isPlaying: |
Shares an external source. | |
(ZMVideoSDKErrors) | - startSharePureAudioSource: |
Starts sharing the pure external audio source. | |
(ZMVideoSDKErrors) | - startSharePureAudioSource:isPlaying: |
Starts sharing the pure external audio source. | |
(BOOL) | - isAnnotationFeatureSupport |
Whether annotation feature is supported or not. | |
(ZMVideoSDKErrors) | - disableViewerAnnotation: |
Disable or enable viewer's annotation by the share owner. | |
(BOOL) | - isViewerAnnotationDisabled |
Whether annotation on current sharing is disabled or not. | |
(ZMVideoSDKAnnotationHelper *_Nullable) | - createAnnotationHelper: |
Creates annotation helper based on shared view. | |
(ZMVideoSDKErrors) | - destroyAnnotationHelper: |
Destroys annotation helper. | |
(ZMVideoSDKErrors) | - enablePlaySharingAudioRawdata: |
Enable or disable local playback of shared audio raw data. | |
(ZMVideoSDKErrors) | - startShareWithPreprocessing:sharePreprocessor: |
Start share preprocessing. | |
Main helper class managing sharing.
Definition at line 233 of file ZMVideoSDKShareHelper.h.
- (ZMVideoSDKAnnotationHelper *_Nullable) createAnnotationHelper: | (NSView *_Nullable) | view |
Creates annotation helper based on shared view.
view | The shared view. Pass the nil will return the helper for self sharing. |
- (ZMVideoSDKErrors) destroyAnnotationHelper: | (ZMVideoSDKAnnotationHelper *_Nonnull) | helper |
Destroys annotation helper.
helper | The object of ZMVideoSDKAnnotationHelper. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) disableViewerAnnotation: | (BOOL) | disable |
Disable or enable viewer's annotation by the share owner.
disable | YES mean disable, NO, mean enable. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) enableMultiShare: | (BOOL) | enable |
Enable or disable participants can share simultaneously.
enable | True to enable. False to disable. |
ZMVideoSDKErrors_Success
, otherwise failed. - (ZMVideoSDKErrors) enableOptimizeForSharedVideo: | (BOOL) | enable |
Enable or disable the optimization of frame rate, you can enable it when there is video in shared content.
enable | YES indicates to enable. NO disable. |
- (ZMVideoSDKErrors) enablePlaySharingAudioRawdata: | (BOOL) | bPlay |
Enable or disable local playback of shared audio raw data.
bPlay | YES to play shared audio raw data, false not to play it. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) enableShareDeviceAudio: | (BOOL) | enable |
Enable or disable the computer sound when sharing, the SDK does not support sharing raw data audio, for example, when you've enabled virtual speaker.
enable | YES to enable. NO to disable. |
- (BOOL) isAnnotationFeatureSupport |
Whether annotation feature is supported or not.
- (BOOL) isMultiShareEnabled |
Determine whether multi share is enabled or not.
- (BOOL) isOptimizeForSharedVideoEnabled |
Determine if optimization for video is enabled.
- (BOOL) isOtherSharing |
Determine whether other user is sharing.
- (BOOL) isScreenSharingOut |
Determine whether the current user is sharing the screen.
- (BOOL) isShareDeviceAudioEnabled |
Determine if the SDK has enabled share computer sound. This reflects the execution status of 'enableShareDeviceAudio' instead of 'startShareComputerAudio'.
- (BOOL) isShareLocked |
Determine whether sharing the view or screen is locked.
- (BOOL) isShareViewValid: | (CGWindowID) | windowID |
Determine if the application's window ID can be shared.
- (BOOL) isSharingOut |
Determine whether the current user is sharing.
- (BOOL) isViewerAnnotationDisabled |
Whether annotation on current sharing is disabled or not.
- (ZMVideoSDKErrors) lockShare: | (BOOL) | lock |
Lock sharing the view or screen. Only the host can call this method.
lock | YES to lock sharing. |
ZMVideoSDKErrors_Success
, otherwise failed. - (ZMVideoSDKErrors) pauseShare |
Pause share.
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) resumeShare |
Resume share.
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) startShare2ndCamera: | (NSString *_Nullable) | cameraID |
Start sharing a camera feed specified by the cameraID as the second camera.
cameraID | The camera ID. |
ZMVideoSDKErrors_Success
. - (ZMVideoSDKErrors) startShareComputerAudio |
Start sharing the computer audio only.
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) startShareMultiScreen: | (NSArray< NSNumber * > *) | monitorIDs | |
shareOption: | (ZMVideoSDKShareOption *_Nullable) | option |
Start share multi-screen.
monitorIDs | The IDs of the monitor that you want to display the shared content. |
option | It is a share option object, contain all option of share. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) startSharePureAudioSource: | (id< ZMVideoSDKShareAudioSource > _Nonnull) | audioSource |
Starts sharing the pure external audio source.
audioSource | the pointer of external audio source object. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) startSharePureAudioSource: | (id< ZMVideoSDKShareAudioSource > _Nonnull) | audioSource | |
isPlaying: | (BOOL) | isPlaying |
Starts sharing the pure external audio source.
audioSource | the pointer of external audio source object. |
isPlaying | YES to play shared audio raw data, false not to play. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) startShareScreen: | (CGDirectDisplayID) | monitorID | |
shareOption: | (ZMVideoSDKShareOption *_Nullable) | option |
Start share screen.
monitorID | The ID of the monitor that you want to display the shared content. |
option | It is a share option object, contain all option of share. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) startShareView: | (CGWindowID) | windowID | |
shareOption: | (ZMVideoSDKShareOption *_Nullable) | option |
Start Share a window.
windowID | The App window id. |
option | It is a share option object, contain all option of share. |
ZMVideoSDKErrors_Success
, otherwise failed. - (ZMVideoSDKErrors) startShareWithPreprocessing: | (ZMVideoSDKSharePreprocessParam *_Nonnull) | param | |
sharePreprocessor: | (id< ZMVideoSDKSharePreprocessor > _Nonnull) | preprocessor |
Start share preprocessing.
param | The share preprocessing parameters. |
preprocessor | Object that handles preprocessing events. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) startSharingExternalSource: | (id< ZMVideoSDKShareSource > _Nonnull) | shareSource | |
audioSource: | (id< ZMVideoSDKShareAudioSource > _Nullable) | audioSource |
Shares an external source.
shareSource | External share source. |
audioSource | External audio source. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) startSharingExternalSource: | (id< ZMVideoSDKShareSource > _Nonnull) | shareSource | |
audioSource: | (id< ZMVideoSDKShareAudioSource > _Nullable) | audioSource | |
isPlaying: | (BOOL) | isPlaying |
Shares an external source.
shareSource | External share source. |
audioSource | External audio source. |
isPlaying | YES to play shared audio raw data, false not to play. |
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) stopShare |
Stop view or screen share.
ZMVideoSDKErrors_Success
. Otherwise failed. - (ZMVideoSDKErrors) subscribeMyShareCamera: | (id< ZMVideoSDKRawDataPipeDelegate > _Nonnull) | dataHandler |
Subscribe to the raw data stream of the camera that is shared as the second camera.
dataHandler | The callback sink object. |
ZMVideoSDKErrors_Success
. - (ZMVideoSDKErrors) unSubscribeMyShareCamera |
Unsubscribe to the raw data stream of the camera that is shared as the second camera.
ZMVideoSDKErrors_Success
.