huquan1991 发表于 2016-5-11 16:06:34

本帖最后由 huquan1991 于 2016-5-11 16:09 编辑

admin 发表于 2016-5-11 15:35
完整的日志信息有吗,包括前面库加载的记录,SDK初始化的记录等。
另外看日志,是在录像的过程中,同时使 ...
对啊   就是双向视频过程中   服务器那边发个消息给我我就截屏

---------------------------AnyChat Platform Core SDK Client Log---------------------------
2016-05-11 15:55:01.370 OpenAccount Load libanychatcore.so success!(V5.3 Build Time:Aug 10 2015 12:28:15)
2016-05-11 15:55:01.397 OpenAccount Load libmediautil.so success!(V5.3 Build Time:Aug 10 2015 12:28:30)
2016-05-11 15:55:01.412 OpenAccount Load libmediashow.so success!(V5.3 Build Time:Aug 10 2015 12:28:27)
2016-05-11 15:55:01.429 OpenAccount Load libmediacore.so success!(V5.3 Build Time:Aug 10 2015 12:28:25)
2016-05-11 15:55:01.882 OpenAccount Invoke      Connect(10.10.81.169,8906)=0
2016-05-11 15:55:01.887 OpenAccount Invoke      LoginServer(username=HKKH_1000507903)
2016-05-11 15:55:01.912 OpenAccount CheckClientSocketLink         Connect(ip=10.10.81.169,port=8906)
2016-05-11 15:55:01.964 OpenAccount Server version: V5.3(Build Time:2015-08-10 12:21:30, Server OS:Windows)
2016-05-11 15:55:01.969 OpenAccount Message      OnConnect(bSuccess:1, errorcode=0)
2016-05-11 15:55:02.349 OpenAccount Message      OnLoginSystem(userid=10261,errorcode=0,username=HKKH_1000507903), msg deliver worked(0)
2016-05-11 15:55:02.354 OpenAccount Load libmediautil.so success!(V5.3 Build Time:Aug 10 2015 12:28:30)
2016-05-11 15:55:02.357 OpenAccount Load libmediashow.so success!(V5.3 Build Time:Aug 10 2015 12:28:27)
2016-05-11 15:55:02.361 OpenAccount Load libmediacore.so success!(V5.3 Build Time:Aug 10 2015 12:28:25)
2016-05-11 15:55:02.365 OpenAccount Server running time: 5 days, 22 hours, 44 minutes, license mode:0
2016-05-11 15:55:02.369 OpenAccount Object InitFlags:0x0
2016-05-11 15:55:02.381 OpenAccount Connection to streaming media server successfully!(udp delay:7ms)
2016-05-11 15:55:03.124 OpenAccount Area(10001) Object Event, unknow event:2, dwParam1:10261
2016-05-11 15:55:03.128 OpenAccount 对象数据更新事件
2016-05-11 15:55:03.132 OpenAccount 服务区域
2016-05-11 15:55:03.134 OpenAccount 对象数据同步结束
2016-05-11 15:55:03.139 OpenAccount 服务区域
2016-05-11 15:55:03.483 OpenAccount 对象数据更新事件
2016-05-11 15:55:03.486 OpenAccount 队列
2016-05-11 15:55:03.488 OpenAccount 对象数据更新事件
2016-05-11 15:55:03.489 OpenAccount 队列
2016-05-11 15:55:03.490 OpenAccount 对象数据同步结束
2016-05-11 15:55:03.493 OpenAccount Area(10001) Object Event, Enter Result:0
2016-05-11 15:55:03.495 OpenAccount 对象数据更新事件
2016-05-11 15:55:03.496 OpenAccount 服务区域
2016-05-11 15:55:03.496 OpenAccount Area(10001) Object Event, unknow event:401, dwParam1:0
2016-05-11 15:55:03.497 OpenAccount 进入服务区域成功
2016-05-11 15:55:03.508 OpenAccount 服务区域状态变化
2016-05-11 15:55:03.564 OpenAccount 队列状态变化
2016-05-11 15:55:03.573 OpenAccount 用户进入队列成功
2016-05-11 15:55:03.596 OpenAccount 队列状态变化
2016-05-11 15:55:05.576 OpenAccount Area(10001) Object Event, unknow event:401, dwParam1:0
2016-05-11 15:55:05.581 OpenAccount 服务区域状态变化
2016-05-11 15:55:20.732 OpenAccount Area(10001) Object Event, unknow event:401, dwParam1:0
2016-05-11 15:55:20.741 OpenAccount 坐席状态变化
2016-05-11 15:55:20.744 OpenAccount 对象数据更新事件
2016-05-11 15:55:20.745 OpenAccount 服务区域状态变化
2016-05-11 15:55:22.060 OpenAccount 对象数据更新事件
2016-05-11 15:55:22.062 OpenAccount 坐席服务通知
2016-05-11 15:55:22.064 OpenAccount 坐席状态变化
2016-05-11 15:55:22.065 OpenAccount 队列状态变化
2016-05-11 15:55:22.264 OpenAccount Message      OnVideoCallEvent(EventType:1, UserId:10262, ErrorCode:0, dwFlags:0x0, dwParam:0
2016-05-11 15:55:22.780 OpenAccount Area(10001) Object Event, unknow event:401, dwParam1:0
2016-05-11 15:55:22.889 OpenAccount 服务区域状态变化
2016-05-11 15:55:28.266 OpenAccount Invoke      VideoCallControl(EventType:2, UserId:10262, ErrorCode:0, dwFlags:0, dwParam:0, UserStr:(null))=0
2016-05-11 15:55:28.309 OpenAccount Message      OnVideoCallEvent(EventType:3, UserId:10262, ErrorCode:0, dwFlags:0x0, dwParam:1
2016-05-11 15:55:28.320 OpenAccount Invoke      EnterRoom(roomid=1)
2016-05-11 15:55:28.642 OpenAccount Message      OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
2016-05-11 15:55:29.006 OpenAccount Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2016-05-11 15:55:29.013 OpenAccount Message      OnReceiveOnlineUser(count=2,roomid=1)
2016-05-11 15:55:29.027 OpenAccount On Remote UserCameraControl(dwUserId:10262, bOpen:1)
2016-05-11 15:55:29.029 OpenAccount 10262
2016-05-11 15:55:29.033 OpenAccount On Remote UserSpeakControl(dwUserId:10262, bOpen:1)
2016-05-11 15:55:29.041 OpenAccount Invoke      UserSpeakControl(userid=-1,bOpen=1)
2016-05-11 15:55:29.044 OpenAccount Audio record control:1, result:-1
2016-05-11 15:55:29.047 OpenAccount Invoke      UserCameraControl(userid=-1, bOpen=1, stream=0)
2016-05-11 15:55:29.050 OpenAccount Invoke      SetVideoPos(dwUserId:-1, hWnd:0xe4877c0, l:0, t:0, r:0, b:0)
2016-05-11 15:55:29.089 OpenAccount Invoke      StreamRecordCtrlEx(-1, 1, 0xa37, 0, StarServerMaxRecord)=0
2016-05-11 15:55:29.106 OpenAccount Default Audio Capture Driver()
2016-05-11 15:55:29.110 OpenAccount Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2016-05-11 15:55:29.138 OpenAccount Audio codec init, handle:1, 11, 1, 16000, 16, 15850
2016-05-11 15:55:29.381 OpenAccount WARNING: -[<AVCaptureConnection: 0xd69f50> isVideoMinFrameDurationSupported] is deprecated.Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2016-05-11 15:55:29.385 OpenAccount WARNING: -[<AVCaptureConnection: 0xd69f50> setVideoMinFrameDuration:] is deprecated.Please use AVCaptureDevice setActiveVideoMinFrameDuration
2016-05-11 15:55:29.392 OpenAccount Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
2016-05-11 15:55:29.539 OpenAccount Message      OnP2PConnectState(userid=10262, state=2)
2016-05-11 15:55:29.553 OpenAccount -----------10262
2016-05-11 15:55:29.557 OpenAccount Invoke      UserSpeakControl(userid=10262,bOpen=1)
2016-05-11 15:55:29.561 OpenAccount Invoke      UserCameraControl(userid=10262, bOpen=1, stream=0)
2016-05-11 15:55:29.563 OpenAccount Invoke      SetVideoPos(dwUserId:10262, hWnd:0xa9c0100, l:0, t:0, r:0, b:0)
2016-05-11 15:55:29.666 OpenAccount userid(10262) audio decode, codec:11, 1 channel, 16000Hz
2016-05-11 15:55:30.050 OpenAccount Message      OnP2PConnectState(userid=10262, state=3)
2016-05-11 15:55:30.271 OpenAccount video init finish: 480x360, 25fps, fmt:100, ret:0
2016-05-11 15:55:30.294 OpenAccount video init finish:480x360, YUV420, fps:25, codecid:1
using cpu capabilities: ARMv6 NEON
profile High, level 2.1
2016-05-11 15:55:30.497 OpenAccount video codec init:codec:1, 25fps, 480x360, bitrate:0kbps, quality:5, preset:3, gop:30, handle:3
2016-05-11 15:55:30.925 OpenAccount userid(10262) video decode, codec:1, 320x240, delay:140ms
2016-05-11 15:55:41.443 OpenAccount Invoke      StreamRecordCtrlEx(-1, 0, 0x400, 0, SnapShot)=0
2016-05-11 15:55:41.444 OpenAccount --------------------(
    4343,
    3,
    434
)--------
2016-05-11 15:55:41.445 OpenAccount -----10262   ggg    ----4343$3$434
Unable to find a suitable output format for '/var/mobile/Applications/A567F844-B56B-46CD-A76A-F8E6278231DE/Documentsp:-1==n.indexOf("Safari"),winphone:!!n.match(/windows (ce|phone|nt)/i)}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()},!function(){function n(){var n='{"cal'

huquan1991 发表于 2016-5-11 16:16:42

huquan1991 发表于 2016-5-11 16:06
对啊   就是双向视频过程中   服务器那边发个消息给我我就截屏

---------------------------AnyCh ...

后面只要不退会一直打印最后一段代码

admin 发表于 2016-5-12 09:29:41

Load libanychatcore.so success!(V5.3 Build Time:Aug 10 2015 12:28:15)更新SDK到最新的6.0,看问题是否依然存在?

wx_anychat 发表于 2016-5-30 10:37:42

admin 发表于 2016-5-12 09:29
更新SDK到最新的6.0,看问题是否依然存在?

我目前用的6.0的也出现了这种情况
---------------------------AnyChat Platform Core SDK Client Log---------------------------
2016-05-30 10:30:58.397 KQHTApp Load libanychatcore.so success!(V6.0 Build Time:May 22 2016 13:44:58)
2016-05-30 10:30:58.403 KQHTApp Load libmediautil.so success!(V6.0 Build Time:May 22 2016 13:45:13)
2016-05-30 10:30:58.404 KQHTApp Load libmediashow.so success!(V6.0 Build Time:May 22 2016 13:45:08)
2016-05-30 10:30:58.406 KQHTApp Load libmediacore.so success!(V6.0 Build Time:May 22 2016 13:45:05)
2016-05-30 10:30:58.437 KQHTApp Invoke        Connect(218.17.71.90,8906)=0
2016-05-30 10:30:58.439 KQHTApp Invoke        Login(username:AnyChat)=0
2016-05-30 10:30:58.439 KQHTApp 登录
2016-05-30 10:30:58.517 KQHTApp Create anychatdnsserver connect:218.17.71.90(8906)
2016-05-30 10:30:58.554 KQHTApp On pre-connection result, errorcode:0, anychatcoreserver, 218.17.71.90(8906, tcp:1)
2016-05-30 10:30:58.620 KQHTApp CheckClientSocketLink       Connect(ip=218.17.71.90,port=8906)
2016-05-30 10:30:58.655 KQHTApp Server version: V5.3(Build Time:2015-08-10 12:21:30, Server OS:Windows)
2016-05-30 10:30:58.655 KQHTApp Message        OnConnect(bSuccess:1, errorcode=0)
2016-05-30 10:30:58.942 KQHTApp Message        OnLoginSystem(userid=-1149,errorcode=0,username=AnyChat), msg deliver worked(0)
2016-05-30 10:30:58.945 KQHTApp Load libmediautil.so success!(V6.0 Build Time:May 22 2016 13:45:13)
2016-05-30 10:30:58.948 KQHTApp Load libmediashow.so success!(V6.0 Build Time:May 22 2016 13:45:08)
2016-05-30 10:30:58.951 KQHTApp Load libmediacore.so success!(V6.0 Build Time:May 22 2016 13:45:05)
2016-05-30 10:30:58.954 KQHTApp Server running time: 41 days, 20 hours, 20 minutes, license mode:0
2016-05-30 10:30:58.966 KQHTApp Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2016-05-30 10:30:58.967 KQHTApp Apply video parameter:352x288, bitrate:180kbps, quality:3, gop:30, fps:12, preset:2, codec:1
2016-05-30 10:30:58.978 KQHTApp Invoke        EnterRoom(roomid=1)
2016-05-30 10:30:59.297 KQHTApp Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=0)
2016-05-30 10:30:59.607 KQHTApp Init iOS audio finish, capture size:640
2016-05-30 10:30:59.609 KQHTApp Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2016-05-30 10:30:59.614 KQHTApp Message        OnReceiveOnlineUser(count=1,roomid=1)
2016-05-30 10:30:59.623 KQHTApp Invoke        SelectVideoCapture(2-Front Facing Camera)
2016-05-30 10:30:59.624 KQHTApp Invoke        UserSpeakControl(userid=-1,bOpen=1)
2016-05-30 10:30:59.626 KQHTApp Invoke        SetVideoPos(dwUserId:-1, hWnd:0x5d15ce00, l:0, t:0, r:0, b:0, dwStreamIndex:0)
2016-05-30 10:30:59.629 KQHTApp Default Audio Capture Driver()
2016-05-30 10:30:59.632 KQHTApp Invoke        UserCameraControl(userid=-1, bOpen=1, stream=0)
2016-05-30 10:30:59.635 KQHTApp Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2016-05-30 10:30:59.638 KQHTApp Audio FX Status: VAD:1, NS:1, AGC:0, AEC:0
2016-05-30 10:30:59.640 KQHTApp Audio codec init, handle:1, 11, 1, 16000, 16, 15850
2016-05-30 10:30:59.741 KQHTApp WARNING: -[<AVCaptureConnection: 0x5e37dce0> isVideoMinFrameDurationSupported] is deprecated.Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2016-05-30 10:30:59.742 KQHTApp WARNING: -[<AVCaptureConnection: 0x5e37dce0> setVideoMinFrameDuration:] is deprecated.Please use AVCaptureDevice setActiveVideoMinFrameDuration
2016-05-30 10:30:59.907 KQHTApp video init finish: 480x360, 25fps, fmt:106, ret:0
using cpu capabilities: none!
profile High, level 2.1
2016-05-30 10:30:59.921 KQHTApp video init finish:480x360, NV12, fps:25, codecid:1
2016-05-30 10:31:01.008 KQHTApp Connection to streaming media server successfully!(udp delay:8ms)
2016-05-30 10:31:01.688 KQHTApp Invoke        StreamRecordCtrlEx(-1, 1, 0x803, 0, )=0
2016-05-30 10:31:01.701 KQHTApp user(-1149) record audio stream parameter: codec:11, 1 channel, 16000Hz
using cpu capabilities: none!
profile High, level 2.1
2016-05-30 10:31:01.735 KQHTApp video codec init:codec:1, 12fps, 480x360, bitrate:180kbps, quality:3, preset:2, gop:30, handle:3
2016-05-30 10:31:01.738 KQHTApp User(-1149) record video stream parameter: codec:1, 360x480, 12fps
Unable to find a suitable output format for '(null)'
2016-05-30 10:31:01.753 KQHTApp User(-1149) record init failed! bAudioPrepare:1, bVideoPrepare:1, dwFlags:0x803, dwFileType:0
2016-05-30 10:31:01.754 KQHTApp         record audio parameter: codecid:11, 2 channel, 16.0kHz, 0kbps
2016-05-30 10:31:01.756 KQHTApp         record video parameter: codecid:1, 360x480, 0kbps
Unable to find a suitable output format for '(null)'
Unable to find a suitable output format for '(null)'
Unable to find a suitable output format for '(null)'
Unable to find a suitable output format for '(null)'
Unable to find a suitable output format for '(null)'
Unable to find a suitable output format for '(null)'
Unable to find a suitable output format for '(null)'
Unable to find a suitable output format for '(

admin 发表于 2016-5-30 12:22:23

Unable to find a suitable output format for '(null)'
2016-05-30 10:31:01.753 KQHTApp User(-1149) record init failed! bAudioPrepare:1, bVideoPrepare:1, dwFlags:0x803, dwFileType:0
2016-05-30 10:31:01.754 KQHTApp         record audio parameter: codecid:11, 2 channel, 16.0kHz, 0kbps
2016-05-30 10:31:01.756 KQHTApp         record video parameter: codecid:1, 360x480, 0kbps

您这边是录像?因为:dwFlags:0x803,是每次都不正常,还是偶尔不正常,有什么规律吗?

wx_anychat 发表于 2016-5-30 13:38:51

admin 发表于 2016-5-30 12:22
您这边是录像?因为:dwFlags:0x803,是每次都不正常,还是偶尔不正常,有什么规律吗?

没有固定规律,出现概率有点高

wx_anychat 发表于 2016-5-30 13:40:46

admin 发表于 2016-5-30 12:22
您这边是录像?因为:dwFlags:0x803,是每次都不正常,还是偶尔不正常,有什么规律吗?

int theRecordId = -1;
    theLocalRecordFlags = ANYCHAT_RECORD_FLAGS_AUDIO + ANYCHAT_RECORD_FLAGS_VIDEO + ANYCHAT_RECORD_FLAGS_LOCALCB;

[AnyChatPlatform StreamRecordCtrlEx: theRecordId
                                           : YES
                                           : theLocalRecordFlags
                                           : 0
                                           : @"StarLocolSelfRecord"];


我是这样调用录制的

wx_anychat 发表于 2016-5-30 13:47:16

admin 发表于 2016-5-30 12:22
您这边是录像?因为:dwFlags:0x803,是每次都不正常,还是偶尔不正常,有什么规律吗?

一旦出现这种问题,如果我点击停止录制,如下:
[AnyChatPlatform StreamRecordCtrlEx: theRecordId
                                             : NO
                                             : theLocalRecordFlags
                                             : 0
                                             : @"StopLocolRecord"];
程序并不会进入录制结束的回调方法里面
- (void) OnAnyChatRecordCallBack:(int) dwUserid : (int) dwErrorCode : (NSString*) lpFileName : (int) dwElapse : (int) dwFlags : (int) dwParam : (NSString*) lpUserStr,也就是这个方法不走了

admin 发表于 2016-5-30 14:15:20

您可以试一下我们SDK包里面内置的一个示例工程,单向视频解决方案:AnyChatSelfRecord,看录像、拍照是否正常?

wx_anychat 发表于 2016-5-30 14:24:20

admin 发表于 2016-5-30 14:15
您可以试一下我们SDK包里面内置的一个示例工程,单向视频解决方案:AnyChatSelfRecord,看录像、拍照是否正 ...

我是根据这个Demo来改的
页: 1 [2]
查看完整版本: iOS抓拍函数偶尔没有回调