EMCallConference.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /*!
  2. * \~chinese
  3. * @header EMCallConference.h
  4. * @abstract 多人会议
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMCallConference.h
  10. * @abstract COnference
  11. * @author Hyphenate
  12. * @version 3.00
  13. */
  14. #import <Foundation/Foundation.h>
  15. typedef NS_ENUM(NSInteger, EMConferenceRole){
  16. EMConferenceRoleNone = 0,
  17. EMConferenceRoleAudience = 1, /*! \~chinese 观众,只能订阅流 \~english Audience, only sub */
  18. EMConferenceRoleSpeaker = 3, /*! \~chinese 主播,订阅流和发布流 \~english Speaker, pub and sub */
  19. EMConferenceRoleAdmin = 7, /*! \~chinese 管理员,授权,订阅流,发布流 \~english Admin, authorize, pub and sub */
  20. };
  21. typedef NS_ENUM(NSInteger, EMConferenceType){
  22. EMConferenceTypeCommunication = 10, /*! \~chinese 普通通信会议,成员最多6人,参会者都是EMConferenceRoleSpeaker \~english Communication,Up to 6 members, member role is EMConferenceRoleSpeaker */
  23. EMConferenceTypeLargeCommunication, /*! \~chinese 大型通信会议,成员6-30人, 参会者都是EMConferenceRoleSpeaker \~english Communication, 6-30 members, member role is EMConferenceRoleSpeaker */
  24. EMConferenceTypeLive, /*! \~chinese 互动视频会议,会议里支持最多6个主播和600个观众 \~english Live,support for up to 6 speakers and 600 audiences. */
  25. };
  26. /*!
  27. * \~chinese
  28. * 多人会议成员对象
  29. *
  30. * \~english
  31. * Conference member class
  32. */
  33. @interface EMCallMember : NSObject
  34. /*!
  35. * \~chinese
  36. * 成员标识符
  37. *
  38. * \~english
  39. * Unique member id
  40. */
  41. @property (nonatomic, strong, readonly) NSString *memberId;
  42. /*!
  43. * \~chinese
  44. * 成员名
  45. *
  46. * \~english
  47. * The member name
  48. */
  49. @property (nonatomic, strong, readonly) NSString *memberName;
  50. /*!
  51. * \~chinese
  52. * 扩展信息
  53. *
  54. * \~english
  55. * Extension
  56. */
  57. @property (nonatomic, strong, readonly) NSString *ext;
  58. @end
  59. /*!
  60. * \~chinese
  61. * 多人会议对象
  62. *
  63. * \~english
  64. * Conference class
  65. */
  66. @interface EMCallConference : NSObject
  67. /*!
  68. * \~chinese
  69. * 会话标识符, 本地生成
  70. *
  71. * \~english
  72. * Unique call id, locally generated
  73. */
  74. @property (nonatomic, strong, readonly) NSString *callId;
  75. /*!
  76. * \~chinese
  77. * 会议标识符,服务器生成
  78. *
  79. * \~english
  80. * Unique conference id, server generation
  81. */
  82. @property (nonatomic, strong, readonly) NSString *confId;
  83. /*!
  84. * \~chinese
  85. * 通话本地的username
  86. *
  87. * \~english
  88. * Local username
  89. */
  90. @property (nonatomic, strong, readonly) NSString *localName;
  91. /*!
  92. * \~chinese
  93. * 会议类型
  94. *
  95. * \~english
  96. * The conference type
  97. */
  98. @property (nonatomic) EMConferenceType type;
  99. /*!
  100. * \~chinese
  101. * 在会议中的角色
  102. *
  103. * \~english
  104. * Role in the conference
  105. */
  106. @property (nonatomic) EMConferenceRole role;
  107. /*!
  108. * \~chinese
  109. * 管理员列表
  110. *
  111. * \~english
  112. * Administrator's id list
  113. */
  114. @property (nonatomic, strong) NSArray<NSString *> *adminIds;
  115. /*!
  116. * \~chinese
  117. * 主播列表
  118. *
  119. * \~english
  120. * Speaker's id list
  121. */
  122. @property (nonatomic, strong) NSArray<NSString *> *speakerIds;
  123. /*!
  124. * \~chinese
  125. * 会议标识符,服务器生成
  126. *
  127. * \~english
  128. * Unique conference id, server generation
  129. */
  130. @property (nonatomic) NSInteger memberCount;
  131. /*!
  132. * \~chinese
  133. * 是否启用服务器录制
  134. *
  135. * \~english
  136. * Whether server recording is enabled
  137. */
  138. @property (nonatomic) BOOL willRecord;
  139. @end