|
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. | |
| (ZMVideoSDKErrors) | - startShareApplication:shareOption: |
| Starts sharing a specific application process. | |
| (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) | - setAnnotationVanishingToolTime:vanishingTime: |
| Sets the vanishing tool time. | |
| (ZMVideoSDKErrors) | - getAnnotationVanishingToolTime:vanishingTime: |
| Gets the current vanishing tool time settings. | |
| (ZMVideoSDKErrors) | - enablePlaySharingAudioRawdata: |
| Enable or disable local playback of shared audio raw data. | |
| (ZMVideoSDKErrors) | - startShareWithPreprocessing:sharePreprocessor: |
| Start share preprocessing. | |
| (ZMVideoSDKWhiteboardHelper *_Nullable) | - getWhiteboardHelper |
| Returns an instance to manage whiteboard during a video SDK session. | |
Main helper class managing sharing.
Definition at line 243 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 | YES to enable. NO 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. |
| - (ZMVideoSDKErrors) getAnnotationVanishingToolTime: | (unsigned int *) | displayTime | |
| vanishingTime: | (unsigned int *) | vanishingTime |
Gets the current vanishing tool time settings.
| displayTime | [out] The time in milliseconds the tool remains visible before fading. |
| vanishingTime | [out] The time in milliseconds for the tool to fade out after displayTime. |
| - (ZMVideoSDKWhiteboardHelper *_Nullable) getWhiteboardHelper |
Returns an instance to manage whiteboard during a video SDK session.
| - (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.
| windowID | The App window ID to be checked. |
| - (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) setAnnotationVanishingToolTime: | (unsigned int) | displayTime | |
| vanishingTime: | (unsigned int) | vanishingTime |
Sets the vanishing tool time.
| displayTime | The time in milliseconds the tool remains visible before fading. |
| vanishingTime | The time in milliseconds for the tool to fade out after displayTime. |
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) startShareApplication: | (pid_t) | processID | |
| shareOption: | (ZMVideoSDKShareOption *_Nullable) | option |
Starts sharing a specific application process.
| processID | The process identifier of the target application. Must be valid in the current user session. |
| option | An optional share settings object containing configuration options for the share. |
ZMVideoSDKErrors_Success. Otherwise the method failed. processID must be a valid process identifier in the current user session. | - (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.