Ejemplo n.º 1
0
 public void OnConnectOtherRoom(string userId, TXLiteAVError errCode, string errMsg)
 {
     if (userId != mPKUserId)
     {
         mIsConnected = false;
         return;
     }
     if (errCode == TXLiteAVError.ERR_NULL)
     {
         // 连麦成功
         mIsConnected               = true;
         this.infoLabel.Text        = String.Format("连麦成功:[room:{0}, user:{1}]", mPKRoomId, mPKUserId);
         this.disconnectBtn.Enabled = true;
         uint roomId;
         if (!uint.TryParse(mPKRoomId, out roomId))
         {
             this.infoLabel.Text = String.Format("目前支持的最大房间号为{0}", uint.MaxValue);
             return;
         }
         mMainForm.AddPKUser(roomId, mPKUserId);
     }
     else
     {
         // 连麦失败
         this.infoLabel.Text = String.Format("连麦失败,errCode:{0}", (int)errCode);
         Log.I(String.Format("连麦失败[userId:{0}, roomId:{1}, errCode:{2}, msg:{3}]", mPKUserId, mPKRoomId, errCode, errMsg));
     }
 }
Ejemplo n.º 2
0
 public void OnDisconnectOtherRoom(TXLiteAVError errCode, string errMsg)
 {
     if (errCode == TXLiteAVError.ERR_NULL)
     {
         // 取消连麦成功
         mIsConnected               = false;
         this.infoLabel.Text        = String.Format("取消连麦成功");
         this.disconnectBtn.Enabled = false;
         mMainForm.ClearPKUsers();
     }
     else
     {
         // 取消连麦失败
         this.infoLabel.Text = String.Format("取消连麦失败,errCode:{0}", (int)errCode);
         Log.I(String.Format("取消连麦失败[userId:{0}, roomId:{1}, errCode:{2}, msg:{3}]", mPKUserId, mPKRoomId, errCode, errMsg));
     }
 }
Ejemplo n.º 3
0
 public void onPlayBGMComplete(TXLiteAVError errCode)
 {
 }
Ejemplo n.º 4
0
 public void onPlayBGMBegin(TXLiteAVError errCode)
 {
 }
Ejemplo n.º 5
0
 public void onDisconnectOtherRoom(TXLiteAVError errCode, string errMsg)
 {
 }
Ejemplo n.º 6
0
 public void onConnectOtherRoom(string userId, TXLiteAVError errCode, string errMsg)
 {
 }
Ejemplo n.º 7
0
 public void onSwitchRole(TXLiteAVError errCode, string errMsg)
 {
 }
Ejemplo n.º 8
0
 public void onError(TXLiteAVError errCode, string errMsg, IntPtr arg)
 {
     Log.E(String.Format("errCode : {0}, errMsg : {1}, arg = {2}", errCode, errMsg, arg));
 }
 public void onError(TXLiteAVError errCode, string errMsg, IntPtr arg)
 {
     Log.E(errMsg);
 }
 public void OnPlayBGMComplete(TXLiteAVError errCode)
 {
     this.bgmTestBtn.Text = "启动BGM测试";
 }