Meeting SDK for Linux API Reference
Loading...
Searching...
No Matches
meeting_video_interface.h
Go to the documentation of this file.
1
6#ifndef _MEETING_VIDEO_INTERFACE_H_
7#define _MEETING_VIDEO_INTERFACE_H_
8#include "zoom_sdk_def.h"
9#if defined(WIN32)
10#include "zoom_sdk_util_define.h"
11#endif
13
29
44
45typedef struct tagVideoSize
46{
47 int width;
48 int height;
50 {
51 memset(this, 0, sizeof(tagVideoSize));
52 }
54
55
74
75
96
102{
103public:
110
119 virtual bool AddVideoToOrder(unsigned int userId, unsigned int position) = 0;
120
127};
128
134{
135public:
137
142 virtual unsigned int GetReqFromUserId() = 0;
143
148 virtual SDKError Ignore() = 0;
149
154 virtual SDKError Accept() = 0;
155
160 virtual SDKError Cancel() = 0;
161};
162
173
184
190{
191public:
197 virtual SDKError Approve() = 0;
198
203 virtual SDKError Decline() = 0;
204};
205
211{
212public:
214
221 virtual void onUserVideoStatusChange(unsigned int userId, VideoStatus status) = 0;
222
227 virtual void onSpotlightedUserListChangeNotification(IList<unsigned int >* lstSpotlightedUserID) = 0;
228
234
239 virtual void onActiveSpeakerVideoUserChanged(unsigned int userid) = 0;
240
245 virtual void onActiveVideoUserChanged(unsigned int userid) = 0;
246
251 virtual void onHostVideoOrderUpdated(IList<unsigned int >* orderList) = 0;
252
257 virtual void onLocalVideoOrderUpdated(IList<unsigned int >* localOrderList) = 0;
258
263 virtual void onFollowHostVideoOrderChanged(bool bFollow) = 0;
264
270 virtual void onUserVideoQualityChanged(VideoConnectionQuality quality, unsigned int userid) = 0;
271
276 virtual void onVideoAlphaChannelStatusChanged(bool isAlphaModeOn) = 0;
277
284 virtual void onCameraControlRequestReceived(unsigned int userId, CameraControlRequestType requestType, ICameraControlRequestHandler* pHandler) = 0;
285
291 virtual void onCameraControlRequestResult(unsigned int userId, CameraControlRequestResult result) = 0;
292};
293
318
336
342{
343public:
345
350 virtual unsigned int GetUserId() = 0;
351
356 virtual bool CanControlCamera() = 0;
357
363
369
375 virtual SDKError TurnLeft(unsigned int range = 50) = 0;
376
382 virtual SDKError TurnRight(unsigned int range = 50) = 0;
383
389 virtual SDKError TurnUp(unsigned int range = 50) = 0;
390
396 virtual SDKError TurnDown(unsigned int range = 50) = 0;
397
403 virtual SDKError ZoomIn(unsigned int range = 50) = 0;
404
410 virtual SDKError ZoomOut(unsigned int range = 50) = 0;
411};
412
418{
419public:
426
432 virtual SDKError MuteVideo() = 0;
433
439 virtual SDKError UnmuteVideo() = 0;
440
448 virtual SDKError CanSpotlight(unsigned int userid, SpotlightResult& result) = 0;
449
457 virtual SDKError CanUnSpotlight(unsigned int userid, SpotlightResult& result) = 0;
458
465 virtual SDKError SpotlightVideo(unsigned int userid) = 0;
466
473 virtual SDKError UnSpotlightVideo(unsigned int userid) = 0;
474
481
488
495 virtual SDKError CanAskAttendeeToStartVideo(unsigned int userid) = 0;
496
503 virtual SDKError AskAttendeeToStartVideo(unsigned int userid) = 0;
504
511 virtual SDKError CanStopAttendeeVideo(unsigned int userid) = 0;
512
519 virtual SDKError StopAttendeeVideo(unsigned int userid) = 0;
520
526
532 virtual SDKError EnableFollowHostVideoOrder(bool bEnable) = 0;
533
538 virtual bool IsFollowHostVideoOrderOn() = 0;
539
547
557
562 virtual bool IsIncomingVideoStopped() = 0;
563
564#if defined(WIN32)
572 virtual SDKError CanPinToFirstView(unsigned int userid, PinResult& result) = 0;
573
580 virtual SDKError PinVideoToFirstView(unsigned int userid) = 0;
581
588 virtual SDKError UnPinVideoFromFirstView(unsigned int userid) = 0;
589
595 virtual SDKError UnPinAllVideosFromFirstView() = 0;
596
602 virtual IList<unsigned int >* GetPinnedUserListFromFirstView() = 0;
603
611 virtual SDKError CanPinToSecondView(unsigned int userid, PinResult& result) = 0;
612
619 virtual SDKError PinVideoToSecondView(unsigned int userid) = 0;
620
627 virtual SDKError UnPinVideoFromSecondView(unsigned int userid) = 0;
628
634 virtual IList<unsigned int >* GetPinnedUserListFromSecondView() = 0;
635
642 virtual SDKError HideOrShowNoVideoUserOnVideoWall(bool bHide) = 0;
643
650 virtual SDKError HideOrShowSelfView(bool bHide) = 0;
651
656 virtual ISetVideoOrderHelper* GetSetVideoOrderHelper() = 0;
657
662 virtual ICameraController* GetMyCameraController() = 0;
663
670 virtual SDKError StopIncomingVideo(bool bStop) = 0;
671
677 virtual SDKError ShowAvatar(bool bShow) = 0;
678
683 virtual bool IsShowAvatar() = 0;
684#endif
685
690 virtual IMeetingCameraHelper* GetMeetingCameraHelper(unsigned int userid) = 0;
691
697
702 virtual bool CanEnableAlphaChannelMode() = 0;
703
709 virtual SDKError EnableAlphaChannelMode(bool enable) = 0;
710
715 virtual bool IsAlphaChannelModeEnabled() = 0;
716
722 virtual VideoSize GetUserVideoSize(unsigned int userid) = 0;
723
730
736 virtual SDKError EnableSpeakerContrastEnhance(bool enable) = 0;
737
743};
745#endif
virtual SDKError Decline()=0
Declines the requirement and finally self-destroys.
virtual SDKError Approve()=0
Accepts the requirement.
Meeting camera helper interface.
virtual SDKError TurnLeft(unsigned int range=50)=0
Turns the camera to the left.
virtual SDKError ZoomIn(unsigned int range=50)=0
Zoom the camera in.
virtual SDKError ZoomOut(unsigned int range=50)=0
Zoom the camera out.
virtual unsigned int GetUserId()=0
Gets the current controlled user ID.
virtual SDKError TurnRight(unsigned int range=50)=0
Turns the camera to the right.
virtual SDKError TurnDown(unsigned int range=50)=0
Turns the camera down.
virtual SDKError GiveUpControlRemoteCamera()=0
Gives up control of the remote camera.
virtual bool CanControlCamera()=0
Whether the camera can be controlled or not.
virtual SDKError TurnUp(unsigned int range=50)=0
Turns the camera up.
virtual SDKError RequestControlRemoteCamera()=0
Requests to control remote camera.
Meeting video controller interface.
virtual SDKError UnSpotlightVideo(unsigned int userid)=0
Unspotlight the video of the assigned user to the first view.
virtual SDKError MuteVideo()=0
Turn off the user's own video.
virtual IMeetingCameraHelper * GetMeetingCameraHelper(unsigned int userid)=0
Gets camera helper interface.
virtual SDKError CanAskAttendeeToStartVideo(unsigned int userid)=0
Query if it is able to demand the specified user to turn on the video.
virtual bool CanEnableAlphaChannelMode()=0
Determines if alpha channel mode can be enabled.
virtual SDKError SetEvent(IMeetingVideoCtrlEvent *pEvent)=0
Sets the meeting video controller callback event handler.
virtual IList< unsigned int > * GetVideoOrderList()=0
Gets the host video order list.
virtual SDKError StopAttendeeVideo(unsigned int userid)=0
Turn off the video of the assigned user.
virtual VideoSize GetUserVideoSize(unsigned int userid)=0
Gets the size of user's video.
virtual SDKError EnableSpeakerContrastEnhance(bool enable)=0
Enables or disables contrast enhancement effect for speaker video.
virtual SDKError UnSpotlightAllVideos()=0
Unpin all the videos from the first view.
virtual SDKError AskAttendeeToStartVideo(unsigned int userid)=0
Demand the assigned user to turn on the video.
virtual bool IsSpeakerContrastEnhanceEnabled()=0
Determines if contrast enhancement effect for speaker video is enabled.
virtual IList< unsigned int > * GetSpotlightedUserList()=0
Gets the list of all the spotlighted user in the meeting.
virtual SDKError CanStopAttendeeVideo(unsigned int userid)=0
Query if it is able to demand the specified user to turn off the video.
virtual bool IsFollowHostVideoOrderOn()=0
Determines if the follow host video mode is enabled.
virtual bool IsSupportFollowHostVideoOrder()=0
Determines if the following host video order feature is supported.
virtual SDKError EnableAlphaChannelMode(bool enable)=0
Enables or disable video alpha channel mode.
virtual IList< unsigned int > * GetLocalVideoOrderList()=0
Gets the local video order list.
virtual SDKError SpotlightVideo(unsigned int userid)=0
Spotlight the video of the assigned user to the first view.
virtual SDKError CanSpotlight(unsigned int userid, SpotlightResult &result)=0
Determines if it is able to spotlight the video of the specified user in the meeting.
virtual bool IsIncomingVideoStopped()=0
Determines if the incoming video is stopped.
virtual SDKError SetVideoQualityPreference(SDKVideoPreferenceSetting preferenceSetting)=0
Sets the video quality preference that automatically adjust user's video to prioritize frame rate ver...
virtual SDKError UnmuteVideo()=0
Turn on the user's own video.
virtual bool IsAlphaChannelModeEnabled()=0
Determines if alpha channel mode is enabled.
virtual SDKError EnableFollowHostVideoOrder(bool bEnable)=0
Enables or disable follow host video order mode.
virtual SDKError RevokeCameraControlPrivilege()=0
Revoke camera control privilege.
virtual SDKError CanUnSpotlight(unsigned int userid, SpotlightResult &result)=0
Determines if it is able to unspotlight the video of the specified user in the meeting.
Meeting video controller event callback.
virtual void onCameraControlRequestReceived(unsigned int userId, CameraControlRequestType requestType, ICameraControlRequestHandler *pHandler)=0
Callback for when the current user receives a camera control request. This callback will be triggered...
virtual void onLocalVideoOrderUpdated(IList< unsigned int > *localOrderList)=0
Callback event of the local video order changes.
virtual void onHostRequestStartVideo(IRequestStartVideoHandler *handler_)=0
Callback event of the requirement to turn on the video from the host.
virtual void onSpotlightedUserListChangeNotification(IList< unsigned int > *lstSpotlightedUserID)=0
Callback event for when the video spotlight user list changes. Spotlight user means that the view wil...
virtual void onFollowHostVideoOrderChanged(bool bFollow)=0
Notification the status of following host's video order changed.
virtual void onUserVideoStatusChange(unsigned int userId, VideoStatus status)=0
Callback event of the user video status changes.
virtual void onActiveVideoUserChanged(unsigned int userid)=0
Callback event of the active video user changes.
virtual void onHostVideoOrderUpdated(IList< unsigned int > *orderList)=0
Callback event of the video order changes.
virtual void onVideoAlphaChannelStatusChanged(bool isAlphaModeOn)=0
Callback event of video alpha channel mode changes.
virtual void onActiveSpeakerVideoUserChanged(unsigned int userid)=0
Callback event of the active speaker video user changes.
virtual void onUserVideoQualityChanged(VideoConnectionQuality quality, unsigned int userid)=0
Callback event of the user video quality changes.
virtual void onCameraControlRequestResult(unsigned int userId, CameraControlRequestResult result)=0
Callback for when the current user is granted camera control access.
Process after the user receives the requirement from the host to turn on the video.
virtual SDKError Cancel()=0
Ignores the request to enable the video in the meeting and finally the instance self-destroys.
virtual SDKError Accept()=0
Accepts the requirement, turns on the video and finally self-destroys.
virtual unsigned int GetReqFromUserId()=0
Gets the user ID who asks to turn on the video.
virtual SDKError Ignore()=0
Ignores the requirement, returns nothing and finally self-destroys.
set video order helper interface.
virtual SDKError SetVideoOrderTransactionCommit()=0
Makes a new video order.
virtual SDKError SetVideoOrderTransactionBegin()=0
Prepares to make a new video order.
virtual bool AddVideoToOrder(unsigned int userId, unsigned int position)=0
Adds the assigned user into the prepared video order.
struct tagSDKVideoPreferenceSetting SDKVideoPreferenceSetting
When setting custom modes, the developer provides the maximum and minimum frame rates....
PinResult
Enumeration of possible results for pinning a user.
@ PinResult_Fail_NoPrivilegeToPin
@ PinResult_Fail_TooManyUsers
@ PinResult_Fail_MeetingDoNotSupport
@ PinResult_Fail_UserCannotBePinned
@ PinResult_Fail_VideoModeDoNotSupport
@ PinResult_Fail_NotEnoughUsers
@ PinResult_Fail_ToMuchPinnedUsers
SDKVideoPreferenceMode
Select and use any of the defined preference mode below when initializing the SDKVideoPreferenceSetti...
@ SDKVideoPreferenceMode_Sharpness
@ SDKVideoPreferenceMode_Smoothness
@ SDKVideoPreferenceMode_Balance
@ SDKVideoPreferenceMode_Custom
@ SpotResult_Fail_NoPrivilegeToSpotlight
@ SpotResult_Fail_UserWithoutVideo
@ SpotResult_Fail_UserNotSpotlighted
@ SpotResult_Fail_NotEnoughUsers
@ SpotResult_Fail_ToMuchSpotlightedUsers
@ SpotResult_Fail_UserCannotBeSpotlighted
VideoStatus
Enumeration of video status of the user. Here are more detailed structural descriptions.
@ Video_NotReceiving
@ Video_Mute_ByHost
VideoConnectionQuality
Enumeration of video quality of the user. Here are more detailed structural descriptions.
@ VideoConnectionQuality_Normal
@ VideoConnectionQuality_Good
@ VideoConnectionQuality_Bad
@ VideoConnectionQuality_Unknown
struct tagVideoSize VideoSize
CameraControlRequestResult
Enumeration of camera control request result. Here are more detailed structural descriptions.
@ CameraControlRequestResult_Approve
@ CameraControlRequestResult_Decline
@ CameraControlRequestResult_Revoke
CameraControlRequestType
Enumeration of camera control request type. Here are more detailed structural descriptions.
@ CameraControlRequestType_RequestControl
@ CameraControlRequestType_Unknown
@ CameraControlRequestType_GiveUpControl
ZOOM windows SDK Common Definition File.
#define END_ZOOM_SDK_NAMESPACE
#define BEGIN_ZOOM_SDK_NAMESPACE
SDKError
Enumeration of common errors of SDK.