|
我在DEMO程序RolesListActivity活动中加入透明通道
public class RolesListActivity extends Activity implements AnyChatBaseEvent,AnyChatVideoCallEvent,AnyChatTransDataEvent {
private void initSdk() {
if (anyChatSDK == null) {
anyChatSDK = new AnyChatCoreSDK();
}
anyChatSDK.SetBaseEvent(this);
anyChatSDK.SetVideoCallEvent(this);
anyChatSDK.SetTransDataEvent(this);
anyChatSDK.EnterRoom(mRoomID, "");
public void OnAnyChatTransBuffer(int dwUserid, byte[] lpBuf, int dwLen) {
// TODO Auto-generated method stub
String srtReceMsg = "";
try {
srtReceMsg=new String(lpBuf,"UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
String a[] = srtReceMsg.split(":");
mRoomID = Integer.parseInt(a[0]);
SFZC = Integer.parseInt(a[1]);
HYM = a[2];
ZCR=a[3];
}
业务服务器端通过透明发送来mRooID等信息,但是OnAnyChatTransBuffer没有被触发,想问问是什么原因,透明通道要单独弄个活动还是透明通道在某个活动结束后才会被触发。
|
|