实时声音测试例子
你好,和你们上午沟通后拿到你们的测试证书了。但是在实时声音测试的时候,发现还是没有声音哦(自有的android客户端及linux业务端)。
日志如下,能帮忙看看吗?
11:07:03(331) OnUserLoginActionCallBack(UserId:-2,UserName:1) Elapse:0ms
PrepareEnterRoom(dwUserId:-2 - dwRoomId:1)
11:07:03(566) PerpareEnterRoomCallBack(UserId:-2,RoomId:1) ErrorCode:0 Elapse:0ms
OnUserEnterRoomAction(dwUserId:-2 - dwRoomId:1)
11:07:03(569) OnUserEnterRoomActionCallBack(UserId:-2,RoomId:1) Elapse:0ms
OnUserLoginAction(dwUserId:-3 - Name:2)
11:12:17(507) OnUserLoginActionCallBack(UserId:-3,UserName:2) Elapse:0ms
PrepareEnterRoom(dwUserId:-3 - dwRoomId:1)
11:12:17(637) PerpareEnterRoomCallBack(UserId:-3,RoomId:1) ErrorCode:0 Elapse:0ms
OnUserEnterRoomAction(dwUserId:-3 - dwRoomId:1)
11:12:17(639) OnUserEnterRoomActionCallBack(UserId:-3,RoomId:1) Elapse:0ms
OnUserLeaveRoomAction(dwUserId:-3 - dwRoomId:1)
OnUserLogoutAction(dwUserId:-3)
11:16:51(31) OnUserLogoutActionExCallBack(UserId:-3, dwErrorCode:101) Elapse:0ms
11:16:51(33) OnUserLeaveRoomActionCallBack(UserId:-3,RoomId:1) Elapse:0ms
OnUserLeaveRoomAction(dwUserId:-2 - dwRoomId:1)
OnUserLogoutAction(dwUserId:-2)
11:16:52(437) OnUserLogoutActionExCallBack(UserId:-2, dwErrorCode:101) Elapse:0ms
11:16:52(438) OnUserLeaveRoomActionCallBack(UserId:-2,RoomId:1) Elapse:0ms
您好,从您的日志上面看没有看到音频的操作,进入房间成功后有没有进行音视频的操作呢? 有的:
configEntity = ConfigService.LoadConfig(this);
InitialSDK();
this.anychat.Connect(configEntity.ip, configEntity.port);
this.anychat.Login("2", "");
this.anychat.EnterRoom(1, "");
anychat.UserSpeakControl(-1, 1); (因为只要声音),是不是还有什么扬声器啊等等需要初始化? 我在这个后面加上了anychat.UserSpeakControl(-14(对方的userID), 1);
或anychat.UserSpeakControl(-15(对方的userID), 1);
后还是没有声音啊,而且android会崩掉
再说了,如果用你们的测试例子,不开业务服务器的情况下也是可以正常通话的哦 按照你们的提供的方法,我将所有so均已放入libs文件夹下,但启动实时对话后android还是会core掉。
android的日志已经打印如下:
---------------------------AnyChat Platform Core SDK Client Log---------------------------
Load libanychatcore.so success!(V4.9 Build Time:Mar4 2014 08:22:47)
Android OS SDK Version:17, Support ARMv7:2, Support Neon:4
Load libmediautil_v7.so success!(V4.9 Build Time:Mar4 2014 02:44:38)
Load libmediashow_4.0.so success!(V4.9 Build Time:Mar4 2014 02:43:57)
Load libmediacore_4.2.so success!(V4.9 Build Time:Mar4 2014 02:44:26)
CPU:2439.94 MIPS, Hardware:MT8125
Invoke BRAC_Connect(192.168.16.134,8906)=0
Invoke LoginServer(username=1)
Invoke EnterRoom(roomid=1)
CheckClientSocketLink Connect(ip=192.168.16.134,port=8906)
Server version: V4.9(Build Time:2014-03-26 21:07:58, Server OS:Windows)
Message OnConnect(bSuccess:1, errorcode=0)
Message OnLoginSystem(userid=2,errorcode=0,username=1), msg deliver worked(0)
Connection to streaming media server successfully!(udp delay:15ms)
Message OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
AllocAudioStream(dwFrameCount:3200, ret:0)
Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
Message OnReceiveOnlineUser(count=1,roomid=1)
Message OnUserEnterRoom(userid=3,nickname=2,siteindex=1)
Message OnP2PConnectState(userid=3, state=1)
Message OnP2PConnectState(userid=3, state=3)
Message OnP2PConnectState(userid=3, state=2)
Message OnP2PConnectState(userid=3, state=0)
Message OnUserLeaveRoom(userid=3,siteindex=1)
请问,能看出问题吗? go2000 发表于 2014-4-26 09:45
按照你们的提供的方法,我将所有so均已放入libs文件夹下,但启动实时对话后android还是会core掉。
andro ...
您好,UserSpeakContrlol操作的日志没有出来,建议加上设置参数看看,调用hallActiviy中applyVideoConfig就可以 试过了,但是有个客户端还是不行,日志如下:
---------------------------AnyChat Platform Core SDK Client Log---------------------------
Load libanychatcore.so success!(V4.9 Build Time:Mar4 2014 08:22:47)
Android OS SDK Version:17, Support ARMv7:2, Support Neon:4
Load libmediautil_v7.so success!(V4.9 Build Time:Mar4 2014 02:44:38)
Load libmediashow_4.0.so success!(V4.9 Build Time:Mar4 2014 02:43:57)
Load libmediacore_4.2.so success!(V4.9 Build Time:Mar4 2014 02:44:26)
CPU:2439.94 MIPS, Hardware:MT8125
Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:0
Invoke BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
Invoke SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
Invoke SetSDKOption(BRAC_SO_AUDIO_VADCTRL,0)
Invoke BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
Invoke BRAC_Connect(192.168.16.134,8906)=0
Invoke LoginServer(username=1)
Invoke EnterRoom(roomid=1)
CheckClientSocketLink Connect(ip=192.168.16.134,port=8906)
Server version: V4.9(Build Time:2014-03-26 21:07:58, Server OS:Windows)
Message OnConnect(bSuccess:1, errorcode=0)
Message OnLoginSystem(userid=3,errorcode=0,username=1), msg deliver worked(0)
Connection to streaming media server successfully!(udp delay:50ms)
Message OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
Message OnReceiveOnlineUser(count=1,roomid=1)
Message OnUserEnterRoom(userid=4,nickname=2,siteindex=1)
Message OnP2PConnectState(userid=4, state=1)
Message OnP2PConnectState(userid=4, state=3)
On Remote UserSpeakControl(dwUserId:4, bOpen:1) 您好,请问使用我们的标准Demo都是正常的吗? go2000 发表于 2014-4-26 10:50
试过了,但是有个客户端还是不行,日志如下:
--------------------------- ...
设置参数成功了,再尝试将打开自己的音频放到进入房间成功回调onAnyChatEnterRoomMsg中看看 是:OnAnyChatEnterRoomMessage吧?
android上只有这个哟
页:
[1]
2