Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKRawDataPipe Class Reference

Video or share raw data pipe interface. More...

#include <ZMVideoSDKUserHelper.h>

Inherits NSObject.

Instance Methods

(ZMVideoSDKErrors- subscribe:listener:
 Subscribes video or share raw data.
 
(ZMVideoSDKErrors- unSubscribe:
 Unsubscribes video or share raw data.
 
(ZMVideoSDKRawDataType- getRawdataType
 Gets the raw data data type.
 
(ZMVideoSDKVideoStatus *_Nullable) - getVideoStatus
 Gets video status.
 
(NSString *_Nullable) - getVideoDeviceName
 Gets video device name.
 
(ZMVideoSDKShareStatus- getShareStatus
 Gets share status.
 
(ZMVideoSDKShareCapturePauseReason- getShareCapturePauseReason
 Gets the reason why the share capture is paused.
 
(ZMVideoSDKShareType- getShareType
 Gets share type.
 
(ZMVideoSDKVideoStatisticInfo *_Nullable) - getVideoStatisticInfo
 Gets video statistic information.
 

Detailed Description

Video or share raw data pipe interface.

Definition at line 259 of file ZMVideoSDKUserHelper.h.

Method Documentation

◆ getRawdataType

- (ZMVideoSDKRawDataType) getRawdataType

Gets the raw data data type.

Returns
Share or Video data type.

◆ getShareCapturePauseReason

- (ZMVideoSDKShareCapturePauseReason) getShareCapturePauseReason

Gets the reason why the share capture is paused.

Returns
The current pause reason of the ongoing share.
Note
If sharing is not paused, it returns ZMVideoSDKShare_Capture_Pause_None.

◆ getShareStatus

- (ZMVideoSDKShareStatus) getShareStatus

Gets share status.

Returns
The current share status.

◆ getShareType

- (ZMVideoSDKShareType) getShareType

Gets share type.

Returns
The current share type.

◆ getVideoDeviceName

- (NSString *_Nullable) getVideoDeviceName

Gets video device name.

Returns
If the function succeeds, it returns the video device name. Otherwise, this function fails and returns nil.

◆ getVideoStatisticInfo

- (ZMVideoSDKVideoStatisticInfo *_Nullable) getVideoStatisticInfo

Gets video statistic information.

Returns
If the function succeeds, it returns the object of ZMVideoSDKVideoStatisticInfo. Otherwise, this function fails and returns nil.

◆ getVideoStatus

- (ZMVideoSDKVideoStatus *_Nullable) getVideoStatus

Gets video status.

Returns
If the function succeeds, it returns pointer of video status object. Otherwise, this function fails and returns nil.

◆ subscribe:listener:

- (ZMVideoSDKErrors) subscribe: (ZMVideoSDKResolution) resolution
listener: (id< ZMVideoSDKRawDataPipeDelegate >) listener 

Subscribes video or share raw data.

Parameters
resolutionThe subscribe size.
listenerThe callback sink object.
Returns
If the function succeeds, it returns ZMVideoSDKErrors_Success. Otherwise, this function returns an error.

◆ unSubscribe:

- (ZMVideoSDKErrors) unSubscribe: (id< ZMVideoSDKRawDataPipeDelegate >) listener

Unsubscribes video or share raw data.

Parameters
listenerThe callback sink object.
Returns
If the function succeeds, it returns ZMVideoSDKErrors_Success. Otherwise, this function returns an error.