AnyChat技术支持论坛
标题: 进入视频房间 打开麦克风 崩溃 [打印本页]
作者: liyukun 时间: 2015-8-27 19:02
标题: 进入视频房间 打开麦克风 崩溃
日志:Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
断点:#1 0x00867ca0 in CAudioProcessingWebRtc::Process(unsigned short*, unsigned int) at AudioProcessingWebRtc.h:195
作者: admin 时间: 2015-8-27 22:50
您好,请将控制台的完整日志信息发上来我们分析一下,谢谢。
作者: liyukun 时间: 2015-8-28 10:03
2015-08-28 10:02:49.363 ChatDemo-UI2.0[1883:712708] Default Audio Capture Driver()
2015-08-28 10:02:49.367 ChatDemo-UI2.0[1883:712708] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2015-08-28 10:02:49.383 ChatDemo-UI2.0[1883:712708] Audio codec init, handle:3, 11, 1, 16000, 16, 15850
2015-08-28 10:02:49.391 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.416 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.466 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.491 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.528 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.579 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.617 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.631 ChatDemo-UI2.0[1883:712741] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
前几天还可以 ,也没有改代码,不知道什么地方影响了。
作者: liyukun 时间: 2015-8-28 10:04
2015-08-28 10:02:49.363 ChatDemo-UI2.0[1883:712708] Default Audio Capture Driver()
2015-08-28 10:02:49.367 ChatDemo-UI2.0[1883:712708] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2015-08-28 10:02:49.383 ChatDemo-UI2.0[1883:712708] Audio codec init, handle:3, 11, 1, 16000, 16, 15850
2015-08-28 10:02:49.391 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.416 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.466 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.491 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.528 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.579 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.617 ChatDemo-UI2.0[1883:712693] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:02:49.631 ChatDemo-UI2.0[1883:712741] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
前几天还可以 ,也没有改代码,不知道什么地方影响了。
作者: 佰锐科技-李友勤 时间: 2015-8-28 10:24
本帖最后由 佰锐科技-李友勤 于 2015-8-28 10:30 编辑
您好,请将调用麦的函数贴上来看看// 音频设备定义enum BRAC_AudioDevice{
BRAC_AD_WAVEIN = 0, ///< 输入设备:Mic
BRAC_AD_WAVEOUT, ///< 输出设备:Wave
};
作者: liyukun 时间: 2015-8-28 11:01
2015-08-28 10:47:29.931 ChatDemo-UI2.0[1971:720959] Invoke UserSpeakControl(userid=-1,bOpen=1)
2015-08-28 10:47:29.933 ChatDemo-UI2.0[1971:720959] Audio record control:1, result:-1
2015-08-28 10:47:29.994 ChatDemo-UI2.0[1971:721208] Default Audio Capture Driver()
2015-08-28 10:47:30.003 ChatDemo-UI2.0[1971:721208] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2015-08-28 10:47:30.013 ChatDemo-UI2.0[1971:721208] Audio codec init, handle:3, 11, 1, 16000, 16, 15850
2015-08-28 10:47:30.043 ChatDemo-UI2.0[1971:721252] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:47:30.086 ChatDemo-UI2.0[1971:721252] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:47:30.136 ChatDemo-UI2.0[1971:721252] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:47:30.160 ChatDemo-UI2.0[1971:721252] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:47:30.180 ChatDemo-UI2.0[1971:721252] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:47:30.207 ChatDemo-UI2.0[1971:721252] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:47:30.249 ChatDemo-UI2.0[1971:721252] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 10:47:30.259 ChatDemo-UI2.0[1971:721307] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
- (void) StartVideoChatint) userid
{
// open local video
NSLog(@"startVideoChat:%d", userid);
[AnyChatPlatform SetSDKOptionInt:BRAC_SO_LOCALVIDEO_OVERLAY :1];
if (isOldVersion)
{
[AnyChatPlatform UserSpeakControl: -1:YES];
}else{
[self setMuteState:isChooseToMute];
}
[AnyChatPlatform SetVideoPos:-1 :self :0 :0 :0 :0];
[AnyChatPlatform UserCameraControl:-1 : YES];
// request other user video
[AnyChatPlatform UserSpeakControl: userid:YES];
[AnyChatPlatform SetVideoPos:userid: self.remoteVideoSurface:0:0:0:0];
[AnyChatPlatform UserCameraControl:userid : YES];
self->iRemoteUserId = userid;
[AnyChatPlatform SetSDKOptionInt:BRAC_SO_LOCALVIDEO_ORIENTATION : self.interfaceOrientation];
}
作者: admin 时间: 2015-8-28 11:13
日志信息前面加载部分没有看到?
作者: liyukun 时间: 2015-8-28 11:20
前面一直是:
2015-08-28 11:05:49.771 ChatDemo-UI2.0[2053:726540] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 11:05:49.817 ChatDemo-UI2.0[2053:726540] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
2015-08-28 11:05:49.863 ChatDemo-UI2.0[2053:726540] video codec init:codec:1, 8fps, 1280x720, bitrate:0kbps, quality:3, preset:3, gop:30, handle:-1
作者: 佰锐科技-李友勤 时间: 2015-8-28 11:29
您好,可否用其他麦克风试下再看看日志
作者: liyukun 时间: 2015-8-28 11:36
一样的,前几天 没有修改 视频界面的代码,不知道别的地方会不会影响这。用以前的 一demo不会崩。
作者: liyukun 时间: 2015-8-28 11:40
[AnyChatPlatform UserSpeakControl: -1:YES];
这一句 有回调吗?就发完指令崩溃
作者: liyukun 时间: 2015-8-28 11:40
[AnyChatPlatform UserSpeakControl: -1:YES];
这一句 有回调吗?就发完指令崩溃
作者: liyukun 时间: 2015-8-28 11:46
[AnyChatPlatform UserSpeakControl: -1:YES];
这一句 有回调吗?就发完这代码指令崩溃
作者: 佰锐科技-李友勤 时间: 2015-8-28 11:51
您好,有的。可以参考开发手册4.1.5
WM_GV_MICSTATECHANGE
作者: liyukun 时间: 2015-8-28 14:50
没找到这文档。。。
作者: 佰锐科技-李友勤 时间: 2015-8-28 15:03
您好,可参考此函数
-
N[3JE$ZZP9L9BA(ET{7IYLT.png
(67.21 KB, 下载次数: 7031)
4.1.5
作者: admin 时间: 2015-8-28 15:16
程序启动部分的日志发上来看看,就是进房间之前的日志!
作者: liyukun 时间: 2015-8-28 15:22
2015-08-28 15:22:00.583 ChatDemo-UI2.0[2393:814262] the origin version is
2015-08-28 15:22:00.584 ChatDemo-UI2.0[2393:814262] the result is 1
2015-08-28 15:22:00.585 ChatDemo-UI2.0[2393:814262] the version is older
2015-08-28 15:22:00.585 ChatDemo-UI2.0[2393:814262] the origin version is 1.0.3
2015-08-28 15:22:00.586 ChatDemo-UI2.0[2393:814262] the result is -1
2015-08-28 15:22:00.586 ChatDemo-UI2.0[2393:814262] the version is new
2015-08-28 15:22:00.588 ChatDemo-UI2.0[2393:814262] the origin version is 1.0.3
2015-08-28 15:22:00.588 ChatDemo-UI2.0[2393:814262] the result is -1
2015-08-28 15:22:00.589 ChatDemo-UI2.0[2393:814262] the version is new
2015-08-28 15:22:00.589 ChatDemo-UI2.0[2393:814262] refreshStatus
作者: admin 时间: 2015-8-28 15:24
亲,上面不是AnyChat启动部分的日志喔!
作者: liyukun 时间: 2015-8-28 15:24
链接视频通话后:
2015-08-28 15:22:40.113 ChatDemo-UI2.0[2393:814262] connect video result is 0
2015-08-28 15:22:40.244 ChatDemo-UI2.0[2393:814387] Message OnVideoCallEvent(EventType:2, UserId:26592, ErrorCode:0, dwFlags:0x0, dwParam:0
2015-08-28 15:22:40.249 ChatDemo-UI2.0[2393:814262] ==========================================
2015-08-28 15:22:40.251 ChatDemo-UI2.0[2393:814262] dwErrorType:2
2015-08-28 15:22:40.251 ChatDemo-UI2.0[2393:814262] dwErrorCode:0
2015-08-28 15:22:40.252 ChatDemo-UI2.0[2393:814262] dwFlags:0
2015-08-28 15:22:40.253 ChatDemo-UI2.0[2393:814262] ==========================================
2015-08-28 15:22:40.253 ChatDemo-UI2.0[2393:814262] 对方请求回复
2015-08-28 15:22:40.615 ChatDemo-UI2.0[2393:814387] Message OnVideoCallEvent(EventType:3, UserId:26592, ErrorCode:0, dwFlags:0x0, dwParam:100
2015-08-28 15:22:40.621 ChatDemo-UI2.0[2393:814262] ==========================================
2015-08-28 15:22:40.622 ChatDemo-UI2.0[2393:814262] dwErrorType:3
2015-08-28 15:22:40.623 ChatDemo-UI2.0[2393:814262] dwErrorCode:0
2015-08-28 15:22:40.624 ChatDemo-UI2.0[2393:814262] dwFlags:0
2015-08-28 15:22:40.625 ChatDemo-UI2.0[2393:814262] ==========================================
2015-08-28 15:22:40.626 ChatDemo-UI2.0[2393:814262] 对方允许通话
2015-08-28 15:22:40.628 ChatDemo-UI2.0[2393:814262] Invoke EnterRoom(roomid=100)
2015-08-28 15:22:41.362 ChatDemo-UI2.0[2393:814387] Message OnEnterRoom(roomid=100,errorcode=0,siteindex=0)
2015-08-28 15:22:41.773 ChatDemo-UI2.0[2393:814387] Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2015-08-28 15:22:41.775 ChatDemo-UI2.0[2393:814387] Message OnReceiveOnlineUser(count=1,roomid=100)
2015-08-28 15:22:41.778 ChatDemo-UI2.0[2393:814262] 用户进入房间
2015-08-28 15:22:41.781 ChatDemo-UI2.0[2393:814262] roomID:0, userId:26592
2015-08-28 15:22:41.782 ChatDemo-UI2.0[2393:814262] the old version is 0
2015-08-28 15:22:41.793 ChatDemo-UI2.0[2393:814262] 房间在线用户信息
2015-08-28 15:22:41.798 ChatDemo-UI2.0[2393:814387] Message OnUserEnterRoom(userid=26592,nickname=990820152015008,siteindex=1)
2015-08-28 15:22:41.823 ChatDemo-UI2.0[2393:814262] Could not load the "video_bg" image referenced from a nib in the bundle with identifier "odier.hot"
2015-08-28 15:22:41.857 ChatDemo-UI2.0[2393:814262] Invoke UserSpeakControl(userid=-1,bOpen=0)
2015-08-28 15:22:41.896 ChatDemo-UI2.0[2393:814262] Invoke UserSpeakControl(userid=-1,bOpen=0)
2015-08-28 15:22:41.897 ChatDemo-UI2.0[2393:814262] deviceOrientation
2015-08-28 15:22:41.897 ChatDemo-UI2.0[2393:814262] Portrait
2015-08-28 15:22:41.990 ChatDemo-UI2.0[2393:814262] 用户进入房间:26592
2015-08-28 15:22:42.418 ChatDemo-UI2.0[2393:814387] On Remote UserSpeakControl(dwUserId:26592, bOpen:1)
2015-08-28 15:22:42.487 ChatDemo-UI2.0[2393:814262] startVideoChat:26592
2015-08-28 15:22:42.492 ChatDemo-UI2.0[2393:814262] Invoke UserSpeakControl(userid=-1,bOpen=0)
2015-08-28 15:22:42.496 ChatDemo-UI2.0[2393:814262] Invoke SetVideoPos(dwUserId:-1, hWnd:0x783c3d0, l:0, t:0, r:0, b:0)
2015-08-28 15:22:42.498 ChatDemo-UI2.0[2393:814262] Invoke UserCameraControl(userid=-1,bOpen=1)
2015-08-28 15:22:42.501 ChatDemo-UI2.0[2393:814262] Invoke UserSpeakControl(userid=26592,bOpen=1)
2015-08-28 15:22:42.502 ChatDemo-UI2.0[2393:814262] Invoke SetVideoPos(dwUserId:26592, hWnd:0x780b020, l:0, t:0, r:0, b:0)
2015-08-28 15:22:42.504 ChatDemo-UI2.0[2393:814262] Invoke UserCameraControl(userid=26592,bOpen=1)
2015-08-28 15:22:42.700 ChatDemo-UI2.0[2393:814392] WARNING: -[<AVCaptureConnection: 0x179fb30> isVideoMinFrameDurationSupported] is deprecated. Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2015-08-28 15:22:42.702 ChatDemo-UI2.0[2393:814392] WARNING: -[<AVCaptureConnection: 0x179fb30> setVideoMinFrameDuration:] is deprecated. Please use AVCaptureDevice setActiveVideoMinFrameDuration
2015-08-28 15:22:42.949 ChatDemo-UI2.0[2393:814650] userid(26592) audio decode, codec:11, 1 channel, 16000Hz
2015-08-28 15:22:43.325 ChatDemo-UI2.0[2393:814392] video init finish: 1280x720, 25fps, fmt:100, ret:0
2015-08-28 15:22:43.328 ChatDemo-UI2.0[2393:814392] video init finish:1280x720, YUV420, fps:25, codecid:1
现在 麦克风 关闭状态:打开麦克风: [AnyChatPlatform UserSpeakControl: -1:YES]; 崩掉。
作者: liyukun 时间: 2015-8-28 15:26
启动:
2015-08-28 15:26:11.340 ChatDemo-UI2.0[2408:815434] 登录成功
2015-08-28 15:26:11.472 ChatDemo-UI2.0[2408:815434] Invoke Connect(114.215.109.6,8906)=0
2015-08-28 15:26:11.477 ChatDemo-UI2.0[2408:815434] Invoke LoginServer(username=18823345177)
2015-08-28 15:26:11.502 ChatDemo-UI2.0[2408:815543] CheckClientSocketLink Connect(ip=114.215.109.6,port=8906)
2015-08-28 15:26:11.637 ChatDemo-UI2.0[2408:815543] Server version: V5.1(Build Time:2014-10-30 09:21:49, Server OSinux)
2015-08-28 15:26:12.132 ChatDemo-UI2.0[2408:815434] 服务器连接成功
2015-08-28 15:26:12.132 ChatDemo-UI2.0[2408:815543] Message OnConnect(bSuccess:1, errorcode=0)
2015-08-28 15:26:13.139 ChatDemo-UI2.0[2408:815543] Server version: V5.1(Build Time:2014-10-30 09:21:49, Server OSinux)
2015-08-28 15:26:13.144 ChatDemo-UI2.0[2408:815543] Message OnLoginSystem(userid=14831,errorcode=0,username=18823345177), msg deliver worked(0)
2015-08-28 15:26:13.146 ChatDemo-UI2.0[2408:815543] Load libmediautil.so success!(V5.3 Build Time:Aug 5 2015 10:19:47)
2015-08-28 15:26:13.150 ChatDemo-UI2.0[2408:815543] Load libmediashow.so success!(V5.3 Build Time:Aug 5 2015 10:19:44)
2015-08-28 15:26:13.155 ChatDemo-UI2.0[2408:815543] Load libmediacore.so success!(V5.3 Build Time:Aug 5 2015 10:19:42)
2015-08-28 15:26:13.159 ChatDemo-UI2.0[2408:815543] Server running time: 92 days, 7 hours, 52 minutes, license mode:1
2015-08-28 15:26:13.166 ChatDemo-UI2.0[2408:815434] Invoke SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=0)
2015-08-28 15:26:13.168 ChatDemo-UI2.0[2408:815434] Apply video parameter:1280x720, bitrate:0kbps, quality:3, gop:30, fps:8, preset:3, codec:1
2015-08-28 15:26:13.169 ChatDemo-UI2.0[2408:815434] 登录成功
2015-08-28 15:26:13.175 ChatDemo-UI2.0[2408:815434] 用户信息更新事件:0 dwType: 0
2015-08-28 15:26:13.176 ChatDemo-UI2.0[2408:815434] 用户在线状态变化:26592 dwStatus: 1
2015-08-28 15:26:13.177 ChatDemo-UI2.0[2408:815434] 用户在线状态变化:26172 dwStatus: 1
2015-08-28 15:26:13.235 ChatDemo-UI2.0[2408:815543] Connection to streaming media server successfully!(udp delay:38ms)
作者: liyukun 时间: 2015-8-28 15:41
2015-08-28 15:40:39.214 ChatDemo-UI2.0[2446:818860] 登录成功
2015-08-28 15:40:39.369 ChatDemo-UI2.0[2446:818993] Server version: V5.1(Build Time:2014-10-30 09:21:49, Server OSinux)
2015-08-28 15:40:39.376 ChatDemo-UI2.0[2446:818860] Invoke Connect(114.215.109.6,8906)=0
2015-08-28 15:40:39.381 ChatDemo-UI2.0[2446:818860] Invoke LoginServer(username=18823345177)
2015-08-28 15:40:39.481 ChatDemo-UI2.0[2446:818993] Message OnConnect(bSuccess:1, errorcode=0)
2015-08-28 15:40:39.489 ChatDemo-UI2.0[2446:818860] 服务器连接成功
2015-08-28 15:40:39.671 ChatDemo-UI2.0[2446:818993] Message OnLoginSystem(userid=14831,errorcode=0,username=18823345177), msg deliver worked(0)
2015-08-28 15:40:39.673 ChatDemo-UI2.0[2446:818993] Load libmediautil.so success!(V5.3 Build Time:Aug 5 2015 10:19:47)
2015-08-28 15:40:39.675 ChatDemo-UI2.0[2446:818993] Load libmediashow.so success!(V5.3 Build Time:Aug 5 2015 10:19:44)
2015-08-28 15:40:39.679 ChatDemo-UI2.0[2446:818993] Load libmediacore.so success!(V5.3 Build Time:Aug 5 2015 10:19:42)
2015-08-28 15:40:39.685 ChatDemo-UI2.0[2446:818993] Server running time: 92 days, 8 hours, 6 minutes, license mode:1
2015-08-28 15:40:39.694 ChatDemo-UI2.0[2446:818860] Invoke SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=0)
2015-08-28 15:40:39.697 ChatDemo-UI2.0[2446:818860] Apply video parameter:1280x720, bitrate:0kbps, quality:3, gop:30, fps:8, preset:3, codec:1
2015-08-28 15:40:39.698 ChatDemo-UI2.0[2446:818860] 登录成功
2015-08-28 15:40:39.719 ChatDemo-UI2.0[2446:818860] 用户信息更新事件:0 dwType: 0
2015-08-28 15:40:39.720 ChatDemo-UI2.0[2446:818860] 用户在线状态变化:26592 dwStatus: 1
2015-08-28 15:40:39.748 ChatDemo-UI2.0[2446:818993] Connection to streaming media server successfully!(udp delay:33ms)
作者: 佰锐科技-李友勤 时间: 2015-8-28 15:42
本帖最后由 佰锐科技-李友勤 于 2015-8-28 16:08 编辑
您好,连接最新本服务器试一下.可使用demo.anychat.cn
欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/) |
Powered by Discuz! X3 |