onJoin abstract method

void onJoin(
  1. bool result,
  2. int reason,
  3. String channelId
)

加入频道结果回调

result 加入频道是否成功

  • true:成功
  • false:失败 reason 加入失败原因,当 result 为 false 时该值有效。失败原因参见:@ref JCMediaChannel#REASON_NONE "JCMediaChannel 错误码" channelId 频道标识符

Implementation

void onJoin(bool result, int reason, String channelId);