cn.tee3.avd_SDK-Objectc  2.1.0
AVDRoomInfo.h
浏览该文件的文档.
1 //
2 // AVDRoomInfo.h
3 // avd_sdk
4 //
5 // Created by skin on 15-7-21.
6 // Copyright (c) 2015年 t3ee. All rights reserved.
7 //
8 
9 #ifndef avd_sdk_AVDRoomInfo_h
10 #define avd_sdk_AVDRoomInfo_h
11 
12 #import "AVDCommon.h"
13 
16 {
17  clear_set = (1 << 0), // use uint32ernal
18  mcu = (1 << 31),
20  rmfree = (1 << 30),
21  host = rmfree + clear_set,
22  temperary = (1 << 29),
24 };
27 {
32 };
33 
36 {
37  init,
41 };
42 
48 @interface AVDRoomInfo : NSObject
49 
50 @property(nonatomic, strong, readonly) AVDRoomId roomId;
51 @property(nonatomic, strong, readonly) NSString* roomName;
52 @property(nonatomic, strong, readonly) NSString* appRoomId;
53 @property(nonatomic, strong, readonly) NSString* roomTopic;
54 @property(nonatomic, strong, readonly) AVDUserId ownerId;
55 @property(nonatomic, strong, readonly) AVDUserId hostId;
56 @property(nonatomic, strong, readonly) NSString* hostPassword;
57 @property(nonatomic, strong, readonly) NSString* confPassword;
58 @property(nonatomic, readonly) NSUInteger startTime;
59 @property(nonatomic, readonly) NSUInteger duration;
60 @property(nonatomic, readonly) NSUInteger bandwidth;
61 @property(nonatomic, readonly) NSUInteger maxAttendee;
62 @property(nonatomic, readonly) NSUInteger maxAudio;
63 @property(nonatomic, readonly) NSUInteger maxVideo;
64 @property(nonatomic, readonly) NSUInteger roomMode;
67 - (id) initWithRoomId:(AVDRoomId) roomId
68  roomName:(NSString*) roomName
69  appRoomId:(NSString*) appRoomId
70  ownerId:(AVDUserId) ownerId
71  hostPassword:(NSString*) hostPassword
72  maxAttendee:(NSUInteger) maxAttendee
73  maxAudio:(NSUInteger) maxAudio
74  maxVideo:(NSUInteger) maxVideo
75  roomMode:(NSUInteger) modevalue;
76 
77 - (id) initWithMcuAppRoomId:(AVDRoomId) appRoomId
78  roomName:(NSString*) roomName
79  hostPassword:(NSString*) hostPassword
80  maxAttendee:(NSUInteger) maxAttendee
81  maxAudio:(NSUInteger) maxAudio
82  maxVideo:(NSUInteger) maxVideo;
83 
84 - (id) initWithMcuRoomId:(AVDRoomId) roomId
85  roomName:(NSString*) roomName
86  appRoomId:(NSString*) appRoomId;
87 
88 - (BOOL) isMcu;
89 - (BOOL) isFree;
90 - (BOOL) isTemperary;
91 - (void) setRoomModeFlag:(enum AVDRoomMode)flag;
92 
93 #ifndef DOXYGEN_SHOULD_SKIP_THIS
94 // Disallow init and don't add to documentation
95 - (id)init __attribute__((
96  unavailable("init is not a supported initializer for this class.")));
97 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
98 
99 @end
100 
101 #endif
已经安排好
Definition: AVDRoomInfo.h:28
AVDUserId ownerId
房间创建者Id
Definition: AVDRoomInfo.h:54
NSUInteger maxAttendee
房间最大用户数限制
Definition: AVDRoomInfo.h:61
NSUInteger maxAudio
房间最大音频数限制
Definition: AVDRoomInfo.h:62
已锁定房间:锁定房间后,新用户无法加入房间
Definition: AVDRoomInfo.h:30
p2p模式
Definition: AVDRoomInfo.h:19
连接服务器失败
Definition: AVDRoomInfo.h:40
已关闭房间
Definition: AVDRoomInfo.h:31
已经连接上服务器
Definition: AVDRoomInfo.h:39
NSUInteger bandwidth
房间带宽限制
Definition: AVDRoomInfo.h:60
主持人模式
Definition: AVDRoomInfo.h:21
正在连接服务器
Definition: AVDRoomInfo.h:38
正在进行中
Definition: AVDRoomInfo.h:29
AVDRoomId roomId
房间Id
Definition: AVDRoomInfo.h:50
NSString * AVDRoomId
Definition: AVDCommon.h:16
NSUInteger maxVideo
房间最大视频数限制
Definition: AVDRoomInfo.h:63
AVDConnectionStatus
房间网络状态
Definition: AVDRoomInfo.h:35
AVDRoomStatus
房间状态
Definition: AVDRoomInfo.h:26
NSString * confPassword
房间密码,必须与主持人密码不同
Definition: AVDRoomInfo.h:57
临时房间模式
Definition: AVDRoomInfo.h:22
NSString * hostPassword
房间主持人密码
Definition: AVDRoomInfo.h:56
自由发言模式
Definition: AVDRoomInfo.h:20
NSString * AVDUserId
Definition: AVDCommon.h:15
NSString * roomTopic
房间主题
Definition: AVDRoomInfo.h:53
AVDRoomMode
房间模式
Definition: AVDRoomInfo.h:15
Definition: AVDRoomInfo.h:17
NSUInteger roomMode
房间模式集
Definition: AVDRoomInfo.h:64
(unavailable("init is not a supported initializer for this class." __attribute__()
初始状态
Definition: AVDRoomInfo.h:37
房间信息结构.
Definition: AVDRoomInfo.h:48
NSUInteger startTime
房间起始时间
Definition: AVDRoomInfo.h:58
NSUInteger duration
房间延续时间
Definition: AVDRoomInfo.h:59
AVDUserId hostId
房间主持人Id
Definition: AVDRoomInfo.h:55
永久房间模式
Definition: AVDRoomInfo.h:23
BOOL isTemperary()
mcu模式
Definition: AVDRoomInfo.h:18
NSString * roomName
房间名
Definition: AVDRoomInfo.h:51
NSString * appRoomId
房间应用层Id
Definition: AVDRoomInfo.h:52