Video SDK for iOS API Reference
Loading...
Searching...
No Matches
ZoomVideoSDKUser.h
Go to the documentation of this file.
1
5
6#import <Foundation/Foundation.h>
7#import <ZoomVideoSDK/ZoomVideoSDKRawDataPipe.h>
8#import <ZoomVideoSDK/ZoomVideoSDKVideoCanvas.h>
9#import <ZoomVideoSDK/ZoomVideoSDKRemoteCameraControlHelper.h>
10#import <ZoomVideoSDK/ZoomVideoSDKShareHelper.h>
11
12
23
29@interface ZoomVideoSDKQOSStatistics : NSObject
30
32@property (nonatomic, assign, readonly) ZoomVideoSDKStatisticsDirection direction;
33
35@property (nonatomic, assign, readonly) NSInteger timestamp;
36
38@property (nonatomic, copy, readonly) NSString * _Nullable codecName;
39
41@property (nonatomic, assign, readonly) NSInteger rtt;
42
44@property (nonatomic, assign, readonly) double jitter;
45
47@property (nonatomic, assign, readonly) NSInteger width;
48
50@property (nonatomic, assign, readonly) NSInteger height;
51
53@property (nonatomic, assign, readonly) NSInteger fps;
54
56@property (nonatomic, assign, readonly) NSInteger bps;
57
59@property (nonatomic, assign, readonly) NSInteger bytesTransferred;
60
62@property (nonatomic, assign, readonly) NSInteger packetsLost;
63
65@property (nonatomic, assign, readonly) NSInteger packetsTransferred;
66
68@property (nonatomic, assign, readonly) ZoomVideoSDKNetworkStatus networkLevel;
69
71@property (nonatomic, assign, readonly) ZoomVideoSDKDataType statisticsType;
72
74@property (nonatomic, assign, readonly) NSInteger avg_loss;
75
77@property (nonatomic, assign, readonly) NSInteger max_loss;
78
80@property (nonatomic, assign, readonly) NSInteger bandwidth;
81
82@end
83
90
92@property (nonatomic, assign, readonly) NSInteger frameWidthInput;
93
95@property (nonatomic, assign, readonly) NSInteger frameHeightInput;
96
98@property (nonatomic, assign, readonly) NSInteger frameRateInput;
99
101@property (nonatomic, assign, readonly) NSInteger bytesSent;
102
104@property (nonatomic, assign, readonly) NSInteger packetsSent;
105
107@property (nonatomic, assign, readonly) NSInteger totalPacketSendDelay;
108
110@property (nonatomic, assign, readonly) NSInteger totalEncodeTime;
111
113@property (nonatomic, assign, readonly) NSInteger framesEncoded;
114
116@property (nonatomic, assign, readonly) NSUInteger headerBytesSent;
117
118@end
119
126
128@property (nonatomic, assign, readonly) unsigned long long bytesReceived;
129
131@property (nonatomic, assign, readonly) NSInteger packetsReceived;
132
134@property (nonatomic, assign, readonly) NSInteger estimatedPlayoutTimestamp;
135
137@property (nonatomic, assign, readonly) NSInteger totalDecodeTime;
138
140@property (nonatomic, assign, readonly) NSInteger framesDecoded;
141
143@property (nonatomic, assign, readonly) double jitterBufferDelay;
144
146@property (nonatomic, assign, readonly) unsigned long long jitterBufferEmittedCount;
147
149@property (nonatomic, assign, readonly) unsigned long long headerBytesReceived;
150
152@property (nonatomic, assign, readonly) NSUInteger packetsDiscarded;
153
155@property (nonatomic, assign, readonly) NSUInteger fecPacketsReceived;
156
158@property (nonatomic, assign, readonly) NSUInteger fecPacketsDiscarded;
159
161@property (nonatomic, assign, readonly) double jitterBufferTargetDelay;
162
164@property (nonatomic, assign, readonly) double jitterBufferMinimumDelay;
165
167@property (nonatomic, assign, readonly) unsigned long long totalSamplesReceived;
168
170@property (nonatomic, assign, readonly) unsigned long long concealedSamples;
171
173@property (nonatomic, assign, readonly) unsigned long long silentConcealedSamples;
174
176@property (nonatomic, assign, readonly) unsigned long long concealmentEvents;
177
179@property (nonatomic, assign, readonly) unsigned long long insertedSamplesForDeceleration;
180
182@property (nonatomic, assign, readonly) unsigned long long removedSamplesForAcceleration;
183
185@property (nonatomic, assign, readonly) double totalSamplesDuration;
186
188@property (nonatomic, assign, readonly) double audioLevel;
189
191@property (nonatomic, assign, readonly) double totalAudioEnergy;
192
193@end
194
195
201
206@property (nonatomic, assign) ZoomVideoSDKNetworkStatus videoNetworkStatus DEPRECATED_MSG_ATTRIBUTE("Use networkLevel instead");
207
208@end
209
215
220@property (nonatomic, assign) ZoomVideoSDKNetworkStatus shareNetworkStatus DEPRECATED_MSG_ATTRIBUTE("Use networkLevel instead");
221
222@end
223
228@interface ZoomVideoSDKAudioStatus : NSObject
232@property (nonatomic, assign) BOOL isMuted;
236@property (nonatomic, assign) BOOL talking;
240@property (nonatomic, assign) ZoomVideoSDKAudioType audioType;
241
242@end
243
248@interface ZoomVideoSDKUser : NSObject
253- (NSInteger)getUserID;
258- (NSString *_Nullable)getUserName;
264- (NSString *_Nullable)getCustomUserId DEPRECATED_MSG_ATTRIBUTE("Use -getUserKey instead");
269- (NSString *_Nullable)getUserKey;
274- (NSString *_Nullable)getUserReference;
279- (BOOL)isHost;
284- (BOOL)isManager;
320
331
337
343
351- (BOOL)setUserVolume:(float)volume isShareAudio:(BOOL)isSharingAudio DEPRECATED_MSG_ATTRIBUTE("Use -setUserPlaybackVolume:isSharingAudio: instead");
352
360- (BOOL)getUserVolume:(float * _Nullable)volume isShareAudio:(BOOL)isSharingAudio DEPRECATED_MSG_ATTRIBUTE("Use -getUserPlaybackVolume:isSharingAudio: instead");
361
368- (BOOL)canSetUserVolume:(BOOL)isSharingAudio DEPRECATED_MSG_ATTRIBUTE("Use -canSetUserPlaybackVolume: instead");
369
376- (BOOL)setUserPlaybackVolume:(float)volume isSharingAudio:(BOOL)isSharingAudio;
377
384- (BOOL)getUserPlaybackVolume:(float * _Nullable)volume isSharingAudio:(BOOL)isSharingAudio;
385
391- (BOOL)canSetUserPlaybackVolume:(BOOL)isShareAudio;
392
397- (unsigned int)getAudioLevel;
398
405- (ZoomVideoSDKError)transferFile:(NSString * _Nullable)filePath;
406
412
418
424
430
437
443@end
ZoomVideoSDKDataType
Enumeration of data types for network quality monitoring.
ZoomVideoSDKWhiteboardStatus
Enumeration of the status of the whiteboard sharing.
ZoomVideoSDKAudioType
Enumeration of audio types.
ZoomVideoSDKError
Enumeration of all the errors in the VideoSDK.
ZoomVideoSDKNetworkStatus
Enumeration of network statuses.
ZoomVideoSDKStatisticsDirection
Direction of media statistics.
@ ZoomVideoSDKStatisticsDirection_Send
@ ZoomVideoSDKStatisticsDirection_Receive
Audio status of user.
BOOL isMuted
Determines whether the audio is muted.
ZoomVideoSDKAudioType audioType
Gets the audio type: VOIP (Voice over IP), Telephony, or None.
BOOL talking
Determines whether the user is talking.
QOS statistics for inbound media stream (receiving).
unsigned long long removedSamplesForAcceleration
Gets the samples removed to speed up playout, i.e. acceleration (receive only, audio only).
NSInteger estimatedPlayoutTimestamp
Gets the estimated playout timestamp (receive only).
NSInteger totalDecodeTime
Gets the total time spent decoding in milliseconds (receive only).
unsigned long long jitterBufferEmittedCount
Gets the total audio samples decoded from RTP packets (receive only).
unsigned long long concealedSamples
Gets the samples produced by concealment instead of real decode (receive only, audio only).
unsigned long long headerBytesReceived
Gets the total bytes of RTP headers (and padding) received (receive only).
NSUInteger packetsDiscarded
Gets the non-FEC packets discarded by NetEQ (receive only, audio only).
unsigned long long bytesReceived
Gets the total bytes received (receive only).
double jitterBufferTargetDelay
Gets the accumulated current target delay of the jitter buffer, in seconds (receive only,...
NSInteger framesDecoded
Gets the total number of frames decoded (receive only).
unsigned long long concealmentEvents
Gets the number of concealment events (receive only, audio only).
NSUInteger fecPacketsReceived
Gets the total number of FEC packets received (receive only, audio only).
unsigned long long insertedSamplesForDeceleration
Gets the samples inserted to slow down playout, i.e. deceleration (receive only, audio only).
double jitterBufferMinimumDelay
Gets the accumulated minimum achievable jitter buffer delay, in seconds (receive only,...
unsigned long long totalSamplesReceived
Gets the total audio samples generated by NetEQ (receive only, audio only).
unsigned long long silentConcealedSamples
Gets the subset of concealedSamples that are silent (receive only, audio only).
double totalAudioEnergy
Gets the accumulated audio energy of the received stream (receive only, audio only).
NSUInteger fecPacketsDiscarded
Gets the FEC packets discarded by NetEQ (receive only, audio only).
double totalSamplesDuration
Gets the total duration of all audio samples received, in seconds (receive only, audio only).
NSInteger packetsReceived
Gets the total number of packets received (receive only).
double jitterBufferDelay
Gets the accumulated playout delay introduced by the jitter buffer, in seconds (receive only).
double audioLevel
Gets the most recent audio level of the received stream, range [0.0, 1.0] (receive only,...
QOS statistics for outbound media stream (sending).
NSInteger bytesSent
Gets the total bytes sent.
NSUInteger headerBytesSent
Gets the total bytes of RTP headers (and padding) sent (send only).
NSInteger totalEncodeTime
Gets the total time spent encoding in milliseconds (send only).
NSInteger frameHeightInput
Gets the height of the input frame (send only).
NSInteger packetsSent
Gets the total number of packets sent.
NSInteger framesEncoded
Gets the total number of frames encoded (send only).
NSInteger frameRateInput
Gets the frame rate of input (send only).
NSInteger totalPacketSendDelay
Gets the total packet send delay in milliseconds (send only).
NSInteger frameWidthInput
Gets the width of the input frame (send only).
Base QOS statistics for media streams (Audio, Video, Share).
NSInteger bytesTransferred
Gets the total bytes transferred (sent or received per direction).
NSInteger avg_loss
Gets the average packet loss ratio in per thousand (e.g. 100 means 10%).
NSInteger bandwidth
Gets the estimated bandwidth in bps.
NSInteger height
Frame height (sent or received per direction).
NSInteger packetsTransferred
Gets the total number of packets transferred (sent or received per direction).
NSInteger max_loss
Gets the maximum packet loss ratio in per thousand (e.g. 100 means 10%).
NSInteger packetsLost
Gets the number of packets lost during transmission.
ZoomVideoSDKNetworkStatus networkLevel
Gets the network quality level.
ZoomVideoSDKStatisticsDirection direction
Gets the direction of statistics (send or receive).
NSInteger width
Frame width (sent or received per direction).
NSInteger bps
Gets the bits per second.
ZoomVideoSDKDataType statisticsType
Gets the statistics type (Audio, Video, or Share).
NSInteger fps
Frame rate in FPS (sent or received per direction).
NSInteger timestamp
Gets the timestamp of the statistics.
NSInteger rtt
Gets the round-trip time in milliseconds.
double jitter
Gets the jitter in milliseconds.
NSString *_Nullable codecName
Gets the name of the codec. For video/share: "h264", "av1". For audio: "silk", "opus",...
A class to manage the subscription and unsubscription of video or share raw data.
Remote camera control helper object interface.
Share raw data pipe interface.
Share statistic information. Inherits from ZoomVideoSDKQOSStatistics (width, height,...
ZoomVideoSDKNetworkStatus shareNetworkStatus
Gets the share network status. Same as ZoomVideoSDKQOSStatistics.networkLevel.
Zoom Video SDK user information.
BOOL isVideoSpotLighted()
Determines whether the user is spotlighted.
NSArray< ZoomVideoSDKShareAction * > *_Nullable getShareActionList()
Gets the user's share-action list.
NSString *_Nullable getUserName()
Gets the name of the user in the session.
BOOL isIndividualRecordAgreed()
Determines whether the user agreed with the individual record.
NSString *_Nullable getUserReference()
Gets the user's reference.
ZoomVideoSDKWhiteboardStatus getWhiteboardStatus()
Gets the whiteboard share status of the user.
NSString *_Nullable getCustomUserId()
Gets the user's custom identity. Which is passed in JWT token or in SDKSessionContext....
BOOL isManager()
Determines whether the user is the manager.
ZoomVideoSDKRemoteCameraControlHelper *_Nullable getRemoteCameraControlHelper()
Gets the helper class instance to access the remote camera control.
NSArray< ZoomVideoSDKVideoCanvas * > *_Nullable getMultiCameraCanvasList()
Gets the user's multi-camera canvas list.
NSArray< ZoomVideoSDKRawDataPipe * > *_Nullable getMultiCameraStreamList()
Gets the user's multi-camera stream list.
ZoomVideoSDKRawDataPipe *_Nullable getVideoPipe()
Gets the user's video pipe.
NSInteger getUserID()
Gets the user's ID.
BOOL isInSubSession()
Determines whether the user is in SubSession.
NSString *_Nullable getUserKey()
Gets the user's key.
ZoomVideoSDKShareStatisticInfo *_Nullable getShareStatisticInfo()
Gets the user's share statistic information.
unsigned int getAudioLevel()
Gets the current audio level of a remote user.
ZoomVideoSDKAudioStatus *_Nullable audioStatus()
Gets the user's audio status.
ZoomVideoSDKVideoCanvas *_Nullable getVideoCanvas()
Gets the user's video canvas.
ZoomVideoSDKVideoStatisticInfo *_Nullable getVideoStatisticInfo()
Gets the user's video statistic information.
ZoomVideoSDKNetworkStatus getOverallNetworkLevel()
Gets the overall network quality level of the user.
BOOL isHost()
Determines whether the user is the host.
BOOL isInFailover()
Determines whether the user is in failover.
BOOL isIncomingLiveStreamUser()
Determines whether the user is an incoming live stream user.
The video canvas is the display area of the video streams on the user’s local device....
Video statistic information. Inherits common QOS fields from ZoomVideoSDKQOSStatistics (width,...
ZoomVideoSDKNetworkStatus videoNetworkStatus
Gets the video network status. Same as ZoomVideoSDKQOSStatistics.networkLevel.