Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
<ZMVideoSDKVideoSource> Protocol Reference

Protocol defining lifecycle events for a custom video source. More...

#include <ZMVideoSDKVideoSourceHelper.h>

Inherits <NSObjectNSObject>.

Instance Methods

(void) - onInitialize:supportedCapbilityList:suggestCapbility:
 Notify when video source prepare.
 
(void) - onPropertyChange:suggestCapbility:
 Notify when video size or fps changed.
 
(void) - onStartSend
 Notify when video start send raw data.
 
(void) - onStopSend
 Notify when video stop send raw data.
 
(void) - onUninitialized
 Notify when video source uninitialized.
 

Detailed Description

Protocol defining lifecycle events for a custom video source.

Definition at line 133 of file ZMVideoSDKVideoSourceHelper.h.

Method Documentation

◆ onInitialize:supportedCapbilityList:suggestCapbility:

- (void) onInitialize: (ZMVideoSDKVideoSender *) sender
supportedCapbilityList: (NSArray< ZMVideoSDKVideoCapability * > *) supportedCapList
suggestCapbility: (ZMVideoSDKVideoCapability *) suggestCap 

Notify when video source prepare.

Parameters
senderThe pointer of video sender object.
supportedCapListThe list of supported video capability.
suggestCapSuggest video capability.

◆ onPropertyChange:suggestCapbility:

- (void) onPropertyChange: (NSArray< ZMVideoSDKVideoCapability * > *) supportedCapList
suggestCapbility: (ZMVideoSDKVideoCapability *) suggestCap 

Notify when video size or fps changed.

Parameters
supportedCapListThe list of supported video capability.
suggestCapSuggest video capability.

◆ onStartSend

- (void) onStartSend

Notify when video start send raw data.

◆ onStopSend

- (void) onStopSend

Notify when video stop send raw data.

◆ onUninitialized

- (void) onUninitialized

Notify when video source uninitialized.