[BRTMRoom setAppID:appID]; // 实例化的时候,如果appid为空, 则返回null BRTMRoom *brtmRoom = [BRTMRoom createRoom]; //创建 BRTMConfig 实例 BRTMConfig *config = [BRTMConfig new]; // 角色, 必传 config.role = BRTMUserRole_admin; // 签名, 从用户的服务器获取, 必传 config.sig = sig; // 用户id, 必传 config.userID = userID; // 房间号, 必传 config.roomID = roomID; // 用户头像, 可选 config.avatar = @""; // 用户昵称, 可选 config.name = @""; //进入房间 BRTMError *error = [self.brtmRoom joinRoomWithConfig:config];
iOS示例代码
iOS
Documentation
Interface
Object and Structure
ErrorCode
Integration
集成简单示例
集成示例代码
iOS示例代码