设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 3200|回复: 2
打印 上一主题 下一主题

OnAnyChatObjectEvent事件

[复制链接]

7

主题

26

帖子

95

积分

注册会员

Rank: 2

积分
95
跳转到指定楼层
楼主
发表于 2015-9-18 11:16:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
执行完AnyChatCoreSDK.ObjectControl(AnyChatObjectDefine.ANYCHAT_OBJECT_TYPE_AREA, AnyChatObjectDefine.ANYCHAT_INVALID_OBJECT_ID, AnyChatObjectDefine.ANYCHAT_OBJECT_CTRL_SYNCDATA, dwUserId, 0, 0, 0, "");的操作后不执行OnAnyChatObjectEvent事件,请问怎么回事。

已设置事件。
anyChatSDK = AnyChatCoreSDK.getInstance(this);
anyChatSDK.SetBaseEvent(this);
anyChatSDK.SetObjectEvent(this);
anyChatSDK.SetVideoCallEvent(this);
anyChatSDK.InitSDK(android.os.Build.VERSION.SDK_INT, 0);
AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_AUTOROTATION, 1);


以下为日志:
09-18 10:49:49.807    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:49(815)        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
09-18 10:49:49.807    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:49(819)        Load libanychatcore.so success!(V5.3 Build Time:Sep  2 2015 01:58:43)
09-18 10:49:49.807    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:49(820)        Android OS SDK Version:19, Support ARMv7:2, Support Neon:4
09-18 10:49:49.817    1225-1225/com.bpm.piba W/linker﹕ libmediautil_v7.so has text relocations. This is wasting memory and is a security risk. Please fix.
09-18 10:49:49.827    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:49(837)        Load libmediautil_v7.so success!(V5.3 Build Time:Sep  2 2015 01:59:53)
09-18 10:49:49.837    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:49(850)        Load libmediashow.so success!(V5.3 Build Time:Sep  2 2015 01:59:39)
09-18 10:49:49.847    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:49(861)        Load libmediacore.so success!(V5.3 Build Time:Sep  2 2015 01:59:41)
09-18 10:49:49.847    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:49(862)        NX507J(nubia) msm8974  4.4.2
09-18 10:49:49.847    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:49(864)        Invoke        Connect(183.62.219.159,8906)=0
    --------- beginning of /dev/log/system
09-18 10:49:49.917    1225-1892/com.bpm.piba I/ANYCHAT﹕ 10:49:49(931)        CheckClientSocketLink         Connect(ip=183.62.219.159,port=8906)
09-18 10:49:50.967    1225-1892/com.bpm.piba I/ANYCHAT﹕ 10:49:50(975)        Server version: V5.3(Build Time:2015-08-07 20:29:06, Server OS:Linux)
09-18 10:49:51.017    1225-1892/com.bpm.piba I/ANYCHAT﹕ 10:49:51(28)        Message        OnConnect(bSuccess:1, errorcode=0)
09-18 10:49:51.027    1225-1225/com.bpm.piba E/MainActivity (onConnect)﹕ true

09-18 10:49:51.037    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:51(46)        Invoke        LoginServer(username=��ij��)
09-18 10:49:51.107    1225-1892/com.bpm.piba I/ANYCHAT﹕ 10:49:51(120)        Message        OnLoginSystem(userid=-21,errorcode=0,username=��ij��), msg deliver worked(0)
09-18 10:49:51.107    1225-1892/com.bpm.piba I/ANYCHAT﹕ 10:49:51(122)        Server running time: 17 days, 16 hours, 37 minutes, license mode:0
09-18 10:49:51.117    1225-1225/com.bpm.piba E/MainActivity (onLogin)﹕ 0
09-18 10:49:51.117    1225-1225/com.bpm.piba I/ANYCHAT﹕ 10:49:51(133)        Object InitFlags:0x0
09-18 10:49:51.117    1225-1225/com.bpm.piba W/MainActivity (LoginMessage)﹕ ANYCHAT_OBJECT_TYPE_AREA
09-18 10:49:51.127    1225-1892/com.bpm.piba I/ANYCHAT﹕ 10:49:51(144)        Connection to streaming media server successfully!(udp delay:11ms)

(时间跨度五分钟)
09-18 11:04:51.937    1225-1899/com.bpm.piba I/ANYCHAT﹕ 11:04:51(947)        socket error, disconnected by peer!, bTcp(1) - userid(-1)
09-18 11:04:51.937    1225-1899/com.bpm.piba I/ANYCHAT﹕ 11:04:51(947)        OnSocketClose, index(2)-errorcode(0-11), flags:0x41, bTcp(1),userid(-1), list:0
09-18 11:04:53.947    1225-1225/com.bpm.piba D/ANYCHAT﹕ ReleaseAudioRecorder
09-18 11:04:53.957    1225-1892/com.bpm.piba I/ANYCHAT﹕ 11:04:53(966)        Message        OnLinkClose(reason=2, dwErrorCode:105)


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

249

主题

2967

帖子

9108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9108
沙发
发表于 2015-9-18 11:23:49 | 只看该作者
业务服务器不是最新版本?或是业务服务器没有初始化ANYCHAT_OBJECT_TYPE_AREA的相关对象?

试试连接我们公开的演示服务器:demo.anychat.cn,看是否可以触发:OnAnyChatObjectEvent事件?
回复 支持 反对

使用道具 举报

7

主题

26

帖子

95

积分

注册会员

Rank: 2

积分
95
板凳
 楼主| 发表于 2015-9-18 11:36:28 | 只看该作者
可以了。有可能是网络或服务器的原因。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|AnyChat ( 粤ICP备13022410号-1 )  

GMT+8, 2024-11-22 22:03 , Processed in 0.168152 second(s), 22 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表