NEMeeting SDK
metting.h
浏览该文件的文档.
1 
9 #ifndef NEM_SDK_INTERFACE_DEFINE_METTING_H_
10 #define NEM_SDK_INTERFACE_DEFINE_METTING_H_
11 
12 #include <string>
13 #include <vector>
14 #include <list>
15 #include "public_define.h"
16 
18 
23 {
28 
33 
43 
48 
53 
66 
71 };
72 
77 {
82 
87 
92 
97 
102 
107 
112 
117 
122 
127 
132 
137 
143 };
144 
149 {
154 
159 
164 
169 
174 
179 };
180 
185 {
188  kDisplayAll
189 };
190 
199 
204 };
205 
214 
219 
224 };
225 
227 
231 {
236 
241 
246 };
247 
251 typedef struct tagNEInMeetingUserInfo {
255  std::string userId;
256 
260  std::string userName;
261 
265  std::string tag;
267 
272 
281 
286 
291 };
292 
296 typedef struct tagNEMeetingControl {
301 
306 
308 
312 typedef struct tagNEMeetingInfo {
317 
321  std::string meetingId;
322 
326  std::string shortMeetingId;
327 
331  std::string subject;
332 
336  std::string password;
337 
341  bool isHost;
342 
346  bool isLocked;
347 
352 
357 
362  int64_t startTime;
363 
367  int64_t duration;
368 
372  std::string sipId;
373 
377  std::string hostUserId;
378 
382  std::list<NEInMeetingUserInfo> userList;
383 
387  std::string extraData;
389 
397  normal = 1,
398 
402  host = 2
403 };
404 
413 
417  int32_t maxCount = -1;
418 
422  std::list<std::string> userList;
424 
428 typedef struct tagNEMeetingScene {
432  std::string code;
433 
437  std::list<NEMeetingRoleConfiguration> roleTypes;
439 
440 #define NEM_MORE_MENU_USER_INDEX 100
441 
446 const int kFirstinjectedMenuId = 100;
447 
452 const int kMicMenuId = 0;
453 
458 const int kCameraMenuId = 1;
459 
464 const int kScreenShareMenuId = 2;
465 
470 const int kParticipantsMenuId = 3;
471 
477 
482 const int kInviteMenuId = 20;
483 
488 const int kChatMenuId = 21;
489 
494 const int kViewMenuId = 22;
495 
500 const int kWhiteboardMenuId = 23;
501 
506 typedef struct tagNEMeetingMenuItem
507 {
511  int itemId = kFirstinjectedMenuId;
512 
516  std::string itemGuid;
517 
521  std::string itemTitle;
522 
526  std::string itemImage;
527 
532  std::string itemTitle2;
533 
538  std::string itemImage2;
539 
544 
548  int itemCheckedIndex = 1;
549 
550  bool operator == (const tagNEMeetingMenuItem& item) const
551  {
552  return item.itemId == itemId;
553  }
554 
555  bool operator < (const tagNEMeetingMenuItem& item) const
556  {
557  return itemId < item.itemId;
558  }
560 
562 
566 {
567 public:
575  NEMeetingParams(const std::string& strDisplayName = "",
576  const std::string& strMeetingId = "",
577  const std::string& strTag = "",
578  const std::string& strPassword = "")
579  :
580  displayName(strDisplayName),
581  meetingId(strMeetingId),
582  tag(strTag),
583  password(strPassword)
584  {
585  }
586 
594  NEMeetingParams(std::string&& strDisplayName,
595  std::string&& strMeetingId,
596  std::string&& strTag,
597  std::string&& strPassword)
598  :
599  displayName(std::move(strDisplayName)),
600  meetingId(std::move(strMeetingId)),
601  tag(std::move(strTag)),
602  password(std::move(strPassword))
603  {
604  }
605 public:
609  std::string displayName;
610 
619  std::string meetingId;
620 
624  std::string tag;
625 
630 
634  std::string password;
635 };
636 
641 {
642 public:
661  bool bNoVideo = true,
662  bool bNoAudio = true,
663  bool bNoChat = false,
664  bool bNoInvite = false,
665  bool bNoScreenShare = true,
666  bool bNoView = true,
667  bool bNoWhiteboard = false,
668  bool bNoRename = false,
669  bool bNoSip = true,
670  bool bNoMuteAllVideo = true,
671  bool bNoMuteAllAudio = false,
672  bool bAudioAINSEnabled = true,
673  bool bShowMemberTag = false,
674  NEMettingWindowMode emViewMode = NORMAL_MODE
675  )
676  : noVideo(bNoVideo)
677  , noAudio(bNoAudio)
678  , noChat(bNoChat)
679  , noInvite(bNoInvite)
680  , meetingIdDisplayOption(kDisplayAll)
681  , noScreenShare(bNoScreenShare)
682  , noView(bNoView)
683  , noWhiteboard(bNoWhiteboard)
684  , noRename(bNoRename)
685  , noSip(bNoSip)
686  , noMuteAllVideo(bNoMuteAllVideo)
687  , noMuteAllAudio(bNoMuteAllAudio)
688  , audioAINSEnabled(bAudioAINSEnabled)
689  , showMemberTag(bShowMemberTag)
690  , defaultWindowMode(emViewMode)
691  {
692  }
693 public:
697  bool noVideo;
698 
702  bool noAudio;
703 
707  bool noChat;
708 
712  bool noInvite;
713 
718 
722  bool noView;
723 
728 
732  bool noRename;
733 
737  bool noSip;
738 
743 
748 
753 
758 
763 
768 
772  std::vector<NEMeetingMenuItem> full_toolbar_menu_items_;
773 
777  std::vector<NEMeetingMenuItem> full_more_menu_items_;
778 
782  std::vector<NEMeetingMenuItem> injected_more_menu_items_;
783 
787  int joinTimeout = 45 * 1000;
788 };
789 
794 {
795 public:
800 
804  std::list<NEMeetingControl> controls;
805 
809  std::string extraData;
810 };
811 
816 {
817 public:
821  bool noCloudRecord = true;
822 };
823 
828 {
829 };
830 
835 {
836 };
837 
841 typedef struct tagNEMeetingItemSetting {
846 
850  std::list<NEMeetingControl> controls;
851 
855  bool attendeeAudioOff = false;
856 
860  bool cloudRecordOn = false;
862 
867  bool enable = false;
868  std::string title;
869  std::string password;
870  bool allowAnonymousEnterChatRoom = true;
871  bool useMeetingChatRoomAsLiveChatRoom = true;
872  std::string webSite;
874 
878 typedef struct tagNEMeetingItem
879 {
880  int64_t meetingUniqueId = 0;
881  std::string meetingId;
882  std::string subject;
883  int64_t startTime = 0;
884  int64_t endTime = 0;
885  std::string password;
888  int64_t createTime = 0;
889  int64_t updateTime = 0;
890  bool enableLive = false;
891  std::string extraData;
892  std::string liveUrl;
893  NEMettingLiveAuthLevel liveWebAccessControlLevel = LIVE_ACCESS_NORMAL;
895 
904 };
905 
910 typedef struct tagAccountInfo {
915 
919  std::string username;
920 
924  std::string appKey;
925 
929  std::string accountId;
930 
934  std::string accountToken;
935 
939  std::string personalMeetingId;
940 
944  std::string shortMeetingId;
945 
949  std::string accountName;
951 
955 typedef struct tagNEHistoryMeetingItem {
960 
964  std::string meetingId;
965 
969  std::string shortMeetingId;
970 
974  std::string subject;
978  std::string password;
979 
983  std::string nickname;
984 
988  std::string sipId;
990 
992 
993 #endif // NEM_SDK_INTERFACE_DEFINE_NEM_METTING_H_
#define NNEM_SDK_INTERFACE_BEGIN_DECLS
Definition: build_config.h:12
#define NNEM_SDK_INTERFACE_END_DECLS
Definition: build_config.h:13
std::vector< NEMeetingMenuItem > injected_more_menu_items_
Definition: metting.h:782
NEShowMeetingIdOption meetingIdDisplayOption
Definition: metting.h:767
std::vector< NEMeetingMenuItem > full_toolbar_menu_items_
Definition: metting.h:772
NEMeetingOptions(bool bNoVideo=true, bool bNoAudio=true, bool bNoChat=false, bool bNoInvite=false, bool bNoScreenShare=true, bool bNoView=true, bool bNoWhiteboard=false, bool bNoRename=false, bool bNoSip=true, bool bNoMuteAllVideo=true, bool bNoMuteAllAudio=false, bool bAudioAINSEnabled=true, bool bShowMemberTag=false, NEMettingWindowMode emViewMode=NORMAL_MODE)
构造函数
Definition: metting.h:660
NEMettingWindowMode defaultWindowMode
Definition: metting.h:762
std::vector< NEMeetingMenuItem > full_more_menu_items_
Definition: metting.h:777
菜单项当前的状态(即对应当前显示的名称),默认为1,1是itemTitle, 2是itemTitle2
Definition: metting.h:566
NEMeetingParams(std::string &&strDisplayName, std::string &&strMeetingId, std::string &&strTag, std::string &&strPassword)
构造函数
Definition: metting.h:594
NEMeetingParams(const std::string &strDisplayName="", const std::string &strMeetingId="", const std::string &strTag="", const std::string &strPassword="")
构造函数
Definition: metting.h:575
NEMeetingRoleType roleType
Definition: metting.h:629
std::list< NEMeetingControl > controls
Definition: metting.h:804
std::string extraData
json扩展参数, 最大长度2048
Definition: metting.h:809
NEMeetingScene scene
会议场景定义 NEMeetingScene
Definition: metting.h:799
const int kWhiteboardMenuId
Definition: metting.h:500
struct nem_sdk_interface::tagNEMeetingScene NEMeetingScene
会议场景定义
NEMeetingRoleType
参会者身份定义
Definition: metting.h:393
struct nem_sdk_interface::tagNEMeetingItem NEMeetingItem
预约会议的信息
const int kCameraMenuId
Definition: metting.h:458
struct nem_sdk_interface::tagNEMeetingRoleConfiguration NEMeetingRoleConfiguration
会议角色信息配置对象
struct nem_sdk_interface::tagNEMeetingMenuItem NEMeetingMenuItem
会议按钮菜单项
NEAttendeeOffType
入会后自动关闭类型
Definition: metting.h:276
@ kAttendeeOffNotAllowSelfOn
Definition: metting.h:290
@ kAttendeeOffAllowSelfOn
Definition: metting.h:285
struct nem_sdk_interface::tagAccountInfo AccountInfo
提供会议SDK中账号信息
NEMeetingStatus
会议状态
Definition: metting.h:23
@ MEETING_STATUS_INMEETING
Definition: metting.h:52
@ MEETING_STATUS_FAILED
Definition: metting.h:27
@ MEETING_STATUS_UNKNOWN
Definition: metting.h:70
@ MEETING_STATUS_WAITING
Definition: metting.h:42
@ MEETING_STATUS_CONNECTING
Definition: metting.h:47
@ MEETING_STATUS_DISCONNECTING
Definition: metting.h:65
NEMettingWindowMode
会议默认的展示模式
Definition: metting.h:194
const int kMicMenuId
Definition: metting.h:452
const int kViewMenuId
Definition: metting.h:494
const int kFirstinjectedMenuId
Definition: metting.h:446
MeetingDisconnectCode
会议连接端口时的状态码
Definition: metting.h:77
@ MEETING_DISCONNECTING_BY_SYNCDATAERROR
Definition: metting.h:121
@ MEETING_DISCONNECTING_CLOSED_BY_SELF_AS_HOST
Definition: metting.h:101
@ MEETING_DISCONNECTING_AUTH_INFO_EXPIRED
Definition: metting.h:106
@ MEETING_DISCONNECTING_BY_TIMEOUT
Definition: metting.h:136
@ MEETING_DISCONNECTING_CLOSED_BY_HOST
Definition: metting.h:91
@ MEETING_DISCONNECTING_BY_SERVER
Definition: metting.h:111
@ MEETING_DISCONNECTING_LOGIN_ON_OTHER_DEVICE
Definition: metting.h:96
@ MEETING_DISCONNECTING_BY_MEETINGNOTEXIST
Definition: metting.h:116
@ MEETING_DISCONNECTING_BY_JOINCHANNELERROR
Definition: metting.h:131
@ MEETING_DISCONNECTING_BY_SELF
Definition: metting.h:81
@ MEETING_DISCONNECTING_REMOVED_BY_HOST
Definition: metting.h:86
@ MEETING_DISCONNECTING_BY_RTCINITERROR
Definition: metting.h:126
@ MEETING_WAITING_VERIFY_PASSWORD
Definition: metting.h:142
const int kInviteMenuId
Definition: metting.h:482
const int kScreenShareMenuId
Definition: metting.h:464
const int kParticipantsMenuId
Definition: metting.h:470
NELoginType
登录类型
Definition: metting.h:899
struct nem_sdk_interface::tagNEMeetingControl NEMeetingControl
会控配置
const int kMangeParticipantsMenuId
Definition: metting.h:476
NEMenuVisibility
菜单可见性策略
Definition: metting.h:231
struct nem_sdk_interface::tagNEMeetingItemLiveSetting NEMeetingItemLiveSetting
直播配置
NEControlType
会控类型
Definition: metting.h:271
const int kChatMenuId
Definition: metting.h:488
NEMeetingItemStatus
预约的会议状态
Definition: metting.h:149
struct nem_sdk_interface::tagNEMeetingInfo NEMeetingInfo
当前会议详情
NEMettingLiveAuthLevel
登录web直播页的鉴权级别
Definition: metting.h:209
NEShowMeetingIdOption
会议号展示选项
Definition: metting.h:185
struct nem_sdk_interface::tagNEHistoryMeetingItem NEHistoryMeetingItem
历史会议记录信息
struct nem_sdk_interface::tagNEMeetingItemSetting NEMeetingItemSetting
预约会议的配置
struct nem_sdk_interface::tagNEInMeetingUserInfo NEInMeetingUserInfo
会议内成员信息
#define NEM_SDK_INTERFACE_EXPORT
公共对象定义头文件
提供会议SDK中账号信息
Definition: metting.h:910
std::list< NEInMeetingUserInfo > userList
Definition: metting.h:382
预约会议的信息
Definition: metting.h:879
NEMeetingItemSetting setting
Definition: metting.h:886
std::list< NEMeetingControl > controls
Definition: metting.h:850
会议角色信息配置对象
Definition: metting.h:408
std::list< NEMeetingRoleConfiguration > roleTypes
Definition: metting.h:437