Unity Video SDK API Reference Documentation
Loading...
Searching...
No Matches
ZMVideoSDKUser Class Reference

Zoom Video SDK user information. More...

Public Member Functions

string GetUserID ()
 Get the user's id.
 
string GetCustomIdentity ()
 Get the user's custom id.
 
string GetUserName ()
 Get the user's name.
 
ZMVideoSDKAudioStatus GetAudioStatus ()
 Get the user's audio status.
 
bool IsHost ()
 Determine whether the user is the host.
 
bool IsManager ()
 Determine whether the user is the manager(coHost)
 
ZMVideoSDKVideoStatisticInfo GetVideoStatisticInfo ()
 Get the user's video statistic information.
 
ZMVideoSDKRawDataPipe GetVideoPipe ()
 Get the user's video raw data pipe.
 
bool SetUserVolume (float volume, bool isSharingAudio)
 Set the user's local volume. This does not affect how other participants hear the user.
 
float GetUserVolume (bool isSharingAudio)
 Get user volume.
 
bool CanSetUserVolume (bool isShareAudio)
 Determine which audio you can set, shared audio or microphone.
 
bool HasIndividualRecordingConsent ()
 Used to determine whether I agree to individual video recording.
 
ZMVideoSDKRawDataPipe GetSharePipe ()
 

Detailed Description

Zoom Video SDK user information.

Definition at line 8 of file ZMVideoSDKUser.cs.

Member Function Documentation

◆ CanSetUserVolume()

bool ZMVideoSDKUser.CanSetUserVolume ( bool  isShareAudio)
inline

Determine which audio you can set, shared audio or microphone.

Parameters
isShareAudioIf true, checks whether you can set the volume of shared audio, otherwise you can set the volume of the microphone.
Returns
return true if the volume of the user can be set, otherwise false.

Definition at line 154 of file ZMVideoSDKUser.cs.

155 {
156 return _videoSDKUser.CanSetUserVolume(isShareAudio);
157 }

◆ GetAudioStatus()

ZMVideoSDKAudioStatus ZMVideoSDKUser.GetAudioStatus ( )
inline

Get the user's audio status.

Returns
Audio status of the user object.

Definition at line 83 of file ZMVideoSDKUser.cs.

84 {
85 return _videoSDKUser.GetAudioStatus();
86 }

◆ GetCustomIdentity()

string ZMVideoSDKUser.GetCustomIdentity ( )
inline

Get the user's custom id.

Returns
The Custom id of the user object.

Definition at line 65 of file ZMVideoSDKUser.cs.

66 {
67 return _videoSDKUser.GetCustomIdentity();
68 }

◆ GetSharePipe()

ZMVideoSDKRawDataPipe ZMVideoSDKUser.GetSharePipe ( )
inline

Get the user's share pipe.

Returns
share pipe. For more information, see ZoomVideoSDKRawDataPipe.

Definition at line 173 of file ZMVideoSDKUser.cs.

174 {
175 ZMVideoSDKRawDataPipe pipe = _videoSDKUser.GetSharePipe();
176 if (pipe == null)
177 {
178 throw new NullReferenceException("GetSharePipe returns null");
179 }
180 return pipe;
181 }
Interface for user to subscribe@unSubscribe video raw data. ZMVideoSDKUser#GetVideoPipe().

◆ GetUserID()

string ZMVideoSDKUser.GetUserID ( )
inline

Get the user's id.

Returns
The user id of the user object.

Definition at line 56 of file ZMVideoSDKUser.cs.

57 {
58 return _videoSDKUser.GetUserID();
59 }

◆ GetUserName()

string ZMVideoSDKUser.GetUserName ( )
inline

Get the user's name.

Returns
The name of the user object.

Definition at line 74 of file ZMVideoSDKUser.cs.

75 {
76 return _videoSDKUser.GetUserName();
77 }

◆ GetUserVolume()

float ZMVideoSDKUser.GetUserVolume ( bool  isSharingAudio)
inline

Get user volume.

Parameters
isSharingAudioIf true, gets the volume of shared audio(such as shared computer audio), otherwise gets the volume of the microphone.
Returns
return the volume of the user.

Definition at line 144 of file ZMVideoSDKUser.cs.

145 {
146 return _videoSDKUser.GetUserVolume(isSharingAudio);
147 }

◆ GetVideoPipe()

ZMVideoSDKRawDataPipe ZMVideoSDKUser.GetVideoPipe ( )
inline

Get the user's video raw data pipe.

Returns
The video pipe. For more information, see ZMVideoSDKRawDataPipe

Definition at line 119 of file ZMVideoSDKUser.cs.

120 {
121 ZMVideoSDKRawDataPipe pipe = _videoSDKUser.GetVideoPipe();
122 if (pipe == null)
123 {
124 throw new NullReferenceException("GetVideoPipe returns null");
125 }
126 return pipe;
127 }

◆ GetVideoStatisticInfo()

ZMVideoSDKVideoStatisticInfo ZMVideoSDKUser.GetVideoStatisticInfo ( )
inline

Get the user's video statistic information.

Returns
The video statistic information. For more information, see ZMVideoSDKVideoStatisticInfo

Definition at line 110 of file ZMVideoSDKUser.cs.

111 {
112 return _videoSDKUser.GetVideoStatisticInfo();
113 }

◆ HasIndividualRecordingConsent()

bool ZMVideoSDKUser.HasIndividualRecordingConsent ( )
inline

Used to determine whether I agree to individual video recording.

Returns
If agreed return true, otherwise false.

Definition at line 163 of file ZMVideoSDKUser.cs.

164 {
165 return _videoSDKUser.HasIndividualRecordingConsent();
166 }

◆ IsHost()

bool ZMVideoSDKUser.IsHost ( )
inline

Determine whether the user is the host.

Returns
True indicates that the user is the host, otherwise false.

Definition at line 92 of file ZMVideoSDKUser.cs.

93 {
94 return _videoSDKUser.IsHost();
95 }

◆ IsManager()

bool ZMVideoSDKUser.IsManager ( )
inline

Determine whether the user is the manager(coHost)

Returns
True indicates that the user is the manager(coHost), otherwise false.

Definition at line 101 of file ZMVideoSDKUser.cs.

102 {
103 return _videoSDKUser.IsManager();
104 }

◆ SetUserVolume()

bool ZMVideoSDKUser.SetUserVolume ( float  volume,
bool  isSharingAudio 
)
inline

Set the user's local volume. This does not affect how other participants hear the user.

Parameters
volumeThe value can be >= 0 and <=10. If volume is 0, you won't be able to hear the related audio.
isSharingAudioIf true, sets the volume of shared audio(such as shared computer audio), otherwise sets the volume of microphone.
Returns
If success return true, otherwise false.

Definition at line 134 of file ZMVideoSDKUser.cs.

135 {
136 return _videoSDKUser.SetUserVolume(volume, isSharingAudio);
137 }