设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
12
返回列表 发新帖
楼主: huquan1991
打印 上一主题 下一主题

iOS抓拍函数偶尔没有回调

[复制链接]

6

主题

29

帖子

102

积分

注册会员

Rank: 2

积分
102
11#
 楼主| 发表于 2016-5-11 16:16:42 | 只看该作者
huquan1991 发表于 2016-5-11 16:06
对啊   就是双向视频过程中   服务器那边发个消息给我  我就截屏  

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

后面只要不退  会一直打印最后一段代码
回复 支持 反对

使用道具 举报

249

主题

2967

帖子

9075

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9075
12#
发表于 2016-5-12 09:29:41 | 只看该作者
Load libanychatcore.so success!(V5.3 Build Time:Aug 10 2015 12:28:15)
更新SDK到最新的6.0,看问题是否依然存在?
回复 支持 反对

使用道具 举报

0

主题

5

帖子

12

积分

新手上路

Rank: 1

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

使用道具 举报

249

主题

2967

帖子

9075

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9075
14#
发表于 2016-5-30 12:22:23 | 只看该作者
[NULL @ 0x15d1cba10] Unable to find a suitable output format for '(null)'
2016-05-30 10:31:01.753 KQHTApp[2966:2813743] User(-1149) record init failed! bAudioPrepare:1, bVideoPrepare:1, dwFlags:0x803, dwFileType:0
2016-05-30 10:31:01.754 KQHTApp[2966:2813743]         record audio parameter: codecid:11, 2 channel, 16.0kHz, 0kbps
2016-05-30 10:31:01.756 KQHTApp[2966:2813743]         record video parameter: codecid:1, 360x480, 0kbps


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

使用道具 举报

0

主题

5

帖子

12

积分

新手上路

Rank: 1

积分
12
15#
发表于 2016-5-30 13:38:51 | 只看该作者
admin 发表于 2016-5-30 12:22
您这边是录像?因为:dwFlags:0x803,是每次都不正常,还是偶尔不正常,有什么规律吗?

没有固定规律,出现概率有点高
回复 支持 反对

使用道具 举报

0

主题

5

帖子

12

积分

新手上路

Rank: 1

积分
12
16#
发表于 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"];


我是这样调用录制的
回复 支持 反对

使用道具 举报

0

主题

5

帖子

12

积分

新手上路

Rank: 1

积分
12
17#
发表于 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,也就是这个方法不走了
回复 支持 反对

使用道具 举报

249

主题

2967

帖子

9075

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9075
18#
发表于 2016-5-30 14:15:20 | 只看该作者
您可以试一下我们SDK包里面内置的一个示例工程,单向视频解决方案:AnyChatSelfRecord,看录像、拍照是否正常?
回复 支持 反对

使用道具 举报

0

主题

5

帖子

12

积分

新手上路

Rank: 1

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

我是根据这个Demo来改的
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-20 07:22 , Processed in 0.325304 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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