自定义消息

1:关键类 抽象类MLVBLiveRoom(腾讯云直播间业务相关定义)实现类 MLVBLiveRoomImp

直播见发送消息流程 初始化房间--》创建群聊(房间为id)--》发送文本消息--》回掉刷新消息--》房间结束--》解散群聊

                                                                        --》发送自定义消息(双端约定type)   


MLVBLiveRoomImpl 类下

MLVBLiveRoom


解释:groupID 创建群组IM id,senderID 发送方id,userName 昵称,headPic 头像,message消息体。

/**
* 收到群文本消息
*/
void onGroupTextMessage(String groupID, String senderID, String userName, String headPic, String message);

/**
* 收到自定义的群消息
*/
void onGroupCustomMessage(String groupID, String senderID, String message);

/**
* 收到自定义的群消息 收礼物消息
*/
void onGroupGitMessage(String groupID, String senderID, String message);

/**
* 收到自定义的C2C消息
*/
void onC2CCustomMessage(String sendID, String cmd, String message);