Unity Video SDK API Reference Documentation
Loading...
Searching...
No Matches
ZMVideoSDKUser.cs
Go to the documentation of this file.
1
2
3using System;
4
8public class ZMVideoSDKUser
9{
10#if UNITY_STANDALONE_OSX
11 private MacZMVideoSDKUser _videoSDKUser = null;
12 public ZMVideoSDKUser(MacZMVideoSDKUser videoSDKUser)
13 {
14 _videoSDKUser = videoSDKUser;
15 }
16 public MacZMVideoSDKUser VideoSDKUser
17 {
18 get { return _videoSDKUser; }
19 }
20#elif UNITY_IOS
21 private IOSZMVideoSDKUser _videoSDKUser = null;
22 public ZMVideoSDKUser(IOSZMVideoSDKUser videoSDKUser)
23 {
24 _videoSDKUser = videoSDKUser;
25 }
26 public IOSZMVideoSDKUser VideoSDKUser
27 {
28 get { return _videoSDKUser; }
29 }
30#elif UNITY_ANDROID
31 private AndroidZoomVideoSDKUser _videoSDKUser = null;
32 public ZMVideoSDKUser(AndroidZoomVideoSDKUser videoSDKUser)
33 {
34 _videoSDKUser = videoSDKUser;
35 }
36 public AndroidZoomVideoSDKUser VideoSDKUser
37 {
38 get { return _videoSDKUser; }
39 }
40#elif UNITY_STANDALONE_WIN
41 private WindowsZoomVideoSDKUser _videoSDKUser = null;
42 public ZMVideoSDKUser(WindowsZoomVideoSDKUser videoSDKUser)
43 {
44 _videoSDKUser = videoSDKUser;
45 }
46 public WindowsZoomVideoSDKUser VideoSDKUser
47 {
48 get { return _videoSDKUser; }
49 }
50#endif
51
56 public string GetUserID()
57 {
58 return _videoSDKUser.GetUserID();
59 }
60
65 public string GetCustomIdentity()
66 {
67 return _videoSDKUser.GetCustomIdentity();
68 }
69
74 public string GetUserName()
75 {
76 return _videoSDKUser.GetUserName();
77 }
78
84 {
85 return _videoSDKUser.GetAudioStatus();
86 }
87
92 public bool IsHost()
93 {
94 return _videoSDKUser.IsHost();
95 }
96
101 public bool IsManager()
102 {
103 return _videoSDKUser.IsManager();
104 }
105
111 {
112 return _videoSDKUser.GetVideoStatisticInfo();
113 }
114
120 {
121 ZMVideoSDKRawDataPipe pipe = _videoSDKUser.GetVideoPipe();
122 if (pipe == null)
123 {
124 throw new NullReferenceException("GetVideoPipe returns null");
125 }
126 return pipe;
127 }
134 public bool SetUserVolume(float volume, bool isSharingAudio)
135 {
136 return _videoSDKUser.SetUserVolume(volume, isSharingAudio);
137 }
138
144 public float GetUserVolume(bool isSharingAudio)
145 {
146 return _videoSDKUser.GetUserVolume(isSharingAudio);
147 }
148
154 public bool CanSetUserVolume(bool isShareAudio)
155 {
156 return _videoSDKUser.CanSetUserVolume(isShareAudio);
157 }
158
164 {
165 return _videoSDKUser.HasIndividualRecordingConsent();
166 }
167
174 {
175 ZMVideoSDKRawDataPipe pipe = _videoSDKUser.GetSharePipe();
176 if (pipe == null)
177 {
178 throw new NullReferenceException("GetSharePipe returns null");
179 }
180 return pipe;
181 }
182}
Interface for user to subscribe@unSubscribe video raw data. ZMVideoSDKUser#GetVideoPipe().
Zoom Video SDK user information.
bool SetUserVolume(float volume, bool isSharingAudio)
Set the user's local volume. This does not affect how other participants hear the user.
ZMVideoSDKRawDataPipe GetVideoPipe()
Get the user's video raw data pipe.
string GetCustomIdentity()
Get the user's custom id.
bool IsHost()
Determine whether the user is the host.
ZMVideoSDKVideoStatisticInfo GetVideoStatisticInfo()
Get the user's video statistic information.
string GetUserName()
Get the user's name.
ZMVideoSDKAudioStatus GetAudioStatus()
Get the user's audio status.
bool HasIndividualRecordingConsent()
Used to determine whether I agree to individual video recording.
string GetUserID()
Get the user's id.
ZMVideoSDKRawDataPipe GetSharePipe()
bool CanSetUserVolume(bool isShareAudio)
Determine which audio you can set, shared audio or microphone.
bool IsManager()
Determine whether the user is the manager(coHost)
float GetUserVolume(bool isSharingAudio)
Get user volume.