设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

IPAD摄像头切换发生的问题

[复制链接]

249

主题

2967

帖子

9108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
9108
11#
发表于 2014-11-10 16:36:11 | 只看该作者
您好,请将更新SDK之后的日志信息帖上来,我们帮您分析一下,谢谢。
回复 支持 反对

使用道具 举报

4

主题

21

帖子

62

积分

注册会员

Rank: 2

积分
62
12#
 楼主| 发表于 2014-11-11 09:26:01 | 只看该作者
以下是日志:我进行了两次handleDoubleTap,第一次只是触发了OnLocalVideoRelease,没有触发OnLocalVideoInit,所以导致本机的画面冻结,对方画面正常切换。

2014-11-11 09:17:43.361 CVNetVideo[344:92430] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
2014-11-11 09:17:43.368 CVNetVideo[344:92430] Load libanychatcore.so success!(V5.1 Build Time:Nov  5 2014 22:21:19)
2014-11-11 09:17:43.375 CVNetVideo[344:92430] Load libmediautil.so success!(V5.2 Build Time:Nov  5 2014 22:21:54)
2014-11-11 09:17:43.386 CVNetVideo[344:92430] Load libmediashow.so success!(V5.1 Build Time:Nov  5 2014 22:21:49)
2014-11-11 09:17:43.392 CVNetVideo[344:92430] Load libmediacore.so success!(V5.1 Build Time:Nov  5 2014 22:21:44)
2014-11-11 09:17:44.563 CVNetVideo[344:92430] 下载成功
2014-11-11 09:17:44.584 CVNetVideo[344:92430] 保存成功./private/var/mobile/Containers/Data/Application/9F87EDB7-5661-40C4-8559-AF78B6DBE7DE/tmp/main.cfg
2014-11-11 09:17:44.861 CVNetVideo[344:92430] LoadConfig::/private/var/mobile/Containers/Data/Application/9F87EDB7-5661-40C4-8559-AF78B6DBE7DE/tmp/main.cfg
2014-11-11 09:17:45.771 CVNetVideo[344:92430] Invoke        BRAC_Connect(demo.anychat.cn,8906)=0
2014-11-11 09:17:45.775 CVNetVideo[344:92430] Invoke        LoginServer(username=strongs111)
2014-11-11 09:17:45.839 CVNetVideo[344:92500] CheckClientSocketLink         Connect(ip=121.199.51.198,port=8906)
2014-11-11 09:17:45.988 CVNetVideo[344:92500] Server version: V5.1(Build Time:2014-11-10 16:17:42, Server OS:Windows)
2014-11-11 09:17:46.018 CVNetVideo[344:92500] Message        OnConnect(bSuccess:1, errorcode=0)
2014-11-11 09:17:46.360 CVNetVideo[344:92500] Message        OnLoginSystem(userid=-274,errorcode=0,username=strongs111), msg deliver worked(0)
2014-11-11 09:17:46.365 CVNetVideo[344:92500] Load libmediautil.so success!(V5.2 Build Time:Nov  5 2014 22:21:54)
2014-11-11 09:17:46.371 CVNetVideo[344:92500] Load libmediashow.so success!(V5.1 Build Time:Nov  5 2014 22:21:49)
2014-11-11 09:17:46.377 CVNetVideo[344:92500] Load libmediacore.so success!(V5.1 Build Time:Nov  5 2014 22:21:44)
2014-11-11 09:17:46.387 CVNetVideo[344:92500] Server running time: 0 days, 16 hours, 52 minutes, license mode:1
2014-11-11 09:17:46.436 CVNetVideo[344:92500] Connection to streaming media server successfully!(udp delay:25ms)
2014-11-11 09:17:47.908 CVNetVideo[344:92430] 当前设置的摄像头:2-Front Facing Camera
2014-11-11 09:17:47.962 CVNetVideo[344:92430] Reachability Flag Status: -R ------d localWiFiStatusForFlags
2014-11-11 09:17:48.885 CVNetVideo[344:92430] 用户'strongs111'(-274)登录服务器成功!
2014-11-11 09:18:01.923 CVNetVideo[344:92430] Invoke        EnterRoom(strongs)
2014-11-11 09:18:01.928 CVNetVideo[344:92430] Invoke        AudioGetVolume(device:0, dwVolume:50)=0
2014-11-11 09:18:01.931 CVNetVideo[344:92430] Invoke        AudioGetVolume(device:1, dwVolume:50)=0
2014-11-11 09:18:01.945 CVNetVideo[344:92430] Invoke        BRAC_SetVideoPos(dwUserId:-1, hWnd:0x5132f90, l:0, t:0, r:0, b:0)
2014-11-11 09:18:01.952 CVNetVideo[344:92430] Invoke        UserCameraControl(userid=-1,bOpen=0)
2014-11-11 09:18:03.197 CVNetVideo[344:92500] Message        OnEnterRoom(roomid=8,errorcode=0,siteindex=1)
2014-11-11 09:18:03.893 CVNetVideo[344:92500] Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2014-11-11 09:18:03.897 CVNetVideo[344:92500] Message        OnReceiveOnlineUser(count=2,roomid=8)
2014-11-11 09:18:03.901 CVNetVideo[344:92430] 成功进入房间'strongs'(8)
2014-11-11 09:18:19.760 CVNetVideo[344:92430] Invoke        UserCameraControl(userid=-1,bOpen=0)
2014-11-11 09:18:19.764 CVNetVideo[344:92430] Invoke        UserSpeakControl(userid=-1,bOpen=0)
2014-11-11 09:18:19.767 CVNetVideo[344:92500] On Remote UserCameraControl(dwUserId:-273, bOpen:1)
2014-11-11 09:18:19.779 CVNetVideo[344:92430] Invoke        BRAC_SetVideoPos(dwUserId:-273, hWnd:0x51c2010, l:0, t:0, r:177, b:236)
2014-11-11 09:18:19.782 CVNetVideo[344:92500] On Remote UserSpeakControl(dwUserId:-273, bOpen:1)
2014-11-11 09:18:19.784 CVNetVideo[344:92430] Invoke        UserCameraControl(userid=-273,bOpen=1)
2014-11-11 09:18:19.790 CVNetVideo[344:92430] Invoke        UserSpeakControl(userid=-273,bOpen=1)
2014-11-11 09:18:19.831 CVNetVideo[344:92500] Message        OnP2PConnectState(userid=-273, state=2)
2014-11-11 09:18:19.917 CVNetVideo[344:92500] Message        OnP2PConnectState(userid=-273, state=3)
2014-11-11 09:18:20.227 CVNetVideo[344:92430] Invoke        UserCameraControl(userid=-1,bOpen=1)
2014-11-11 09:18:20.744 CVNetVideo[344:92504] WARNING: -[<AVCaptureConnection: 0x18d24a90> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2014-11-11 09:18:20.748 CVNetVideo[344:92504] WARNING: -[<AVCaptureConnection: 0x18d24a90> setVideoMinFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMinFrameDuration
2014-11-11 09:18:20.761 CVNetVideo[344:92430] OnLocalVideoInit
2014-11-11 09:18:21.721 CVNetVideo[344:92504] video init finish: 480x360, 25fps, fmt:100, ret:0
2014-11-11 09:18:21.727 CVNetVideo[344:92504] video init finish:480x360, YUV420, fps:25
[libx264 @ 0x20e2010] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x20e2010] profile High, level 2.1
2014-11-11 09:18:22.415 CVNetVideo[344:92829] video codec init:codec:1, 15fps, 480x360, bitrate:90kbps, quality:3, preset:3, gop:30, handle:1
[libx264 @ 0x20e2010] frame I:2     Avg QP:27.89  size:  2624
[libx264 @ 0x20e2010] frame P:16    Avg QP:40.49  size:  1044
[libx264 @ 0x20e2010] mb I  I16..4: 35.7% 62.0%  2.2%
[libx264 @ 0x20e2010] mb P  I16..4: 15.5% 16.3%  0.0%  P16..4: 18.4%  4.6%  1.1%  0.0%  0.0%    skip:44.0%
[libx264 @ 0x20e2010] 8x8 transform intra:54.2% inter:58.9%
[libx264 @ 0x20e2010] coded y,uvDC,uvAC intra: 18.9% 31.3% 1.3% inter: 2.7% 12.7% 0.0%
[libx264 @ 0x20e2010] i16 v,h,dc,p: 42% 26% 16% 16%
[libx264 @ 0x20e2010] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 17% 52%  2%  2%  2%  2%  3%  4%
[libx264 @ 0x20e2010] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 15% 35%  3%  5%  4%  2%  6%  8%
[libx264 @ 0x20e2010] i8c dc,h,v,p: 83%  8%  8%  1%
[libx264 @ 0x20e2010] Weighted P-Frames: Y:6.2% UV:6.2%
[libx264 @ 0x20e2010] kb/s:146.36
2014-11-11 09:18:25.461 CVNetVideo[344:92430] handleDoubleTap::当前设置的摄像头:1-Back Facing Camera
2014-11-11 09:18:25.469 CVNetVideo[344:92430] OnLocalVideoRelease
2014-11-11 09:18:25.581 CVNetVideo[344:92504] WARNING: -[<AVCaptureConnection: 0xebbfe50> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2014-11-11 09:18:25.584 CVNetVideo[344:92504] WARNING: -[<AVCaptureConnection: 0xebbfe50> setVideoMinFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMinFrameDuration
2014-11-11 09:18:25.797 CVNetVideo[344:92504] video init finish: 480x360, 25fps, fmt:100, ret:0
2014-11-11 09:18:25.804 CVNetVideo[344:92504] video init finish:480x360, YUV420, fps:25
[libx264 @ 0x19fe210] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x19fe210] profile High, level 2.1
2014-11-11 09:18:26.168 CVNetVideo[344:92834] video codec init:codec:1, 15fps, 480x360, bitrate:90kbps, quality:3, preset:3, gop:30, handle:2
[libx264 @ 0x19fe210] frame I:7     Avg QP:26.55  size:  4497
[libx264 @ 0x19fe210] frame P:186   Avg QP:28.32  size:   575
[libx264 @ 0x19fe210] mb I  I16..4: 32.4% 56.3% 11.3%
[libx264 @ 0x19fe210] mb P  I16..4:  2.4%  2.1%  0.0%  P16..4: 21.0%  4.2%  0.7%  0.0%  0.0%    skip:69.5%
[libx264 @ 0x19fe210] 8x8 transform intra:51.0% inter:41.6%
[libx264 @ 0x19fe210] coded y,uvDC,uvAC intra: 42.9% 23.8% 3.3% inter: 2.3% 5.1% 0.0%
[libx264 @ 0x19fe210] i16 v,h,dc,p: 43% 24% 17% 16%
[libx264 @ 0x19fe210] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 14% 45%  4%  4%  3%  6%  4%  4%
[libx264 @ 0x19fe210] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 21% 25%  3%  6%  2% 17%  7%  3%
[libx264 @ 0x19fe210] i8c dc,h,v,p: 78% 10% 11%  0%
[libx264 @ 0x19fe210] Weighted P-Frames: Y:1.6% UV:1.1%
[libx264 @ 0x19fe210] kb/s:86.03
2014-11-11 09:18:44.833 CVNetVideo[344:92430] handleDoubleTap::当前设置的摄像头:2-Front Facing Camera
2014-11-11 09:18:44.945 CVNetVideo[344:92504] WARNING: -[<AVCaptureConnection: 0x19ea7290> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2014-11-11 09:18:44.946 CVNetVideo[344:92504] WARNING: -[<AVCaptureConnection: 0x19ea7290> setVideoMinFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMinFrameDuration
2014-11-11 09:18:45.185 CVNetVideo[344:92504] video init finish: 480x360, 25fps, fmt:100, ret:0
2014-11-11 09:18:45.194 CVNetVideo[344:92504] video init finish:480x360, YUV420, fps:25
[libx264 @ 0x21e9610] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x21e9610] profile High, level 2.1
2014-11-11 09:18:45.399 CVNetVideo[344:92834] video codec init:codec:1, 15fps, 480x360, bitrate:90kbps, quality:3, preset:3, gop:30, handle:3
回复 支持 反对

使用道具 举报

4

主题

41

帖子

278

积分

中级会员

Rank: 3Rank: 3

积分
278
13#
发表于 2014-11-11 10:11:13 | 只看该作者
本帖最后由 chenxs 于 2014-11-11 10:26 编辑

您好,请问你得工程结构是怎样的模式?
比如说,工程结构利用一个视图控制器类去管理全部的控制器类、用导航控制器结构,或是用 Storyboard 模式?
如果方便的话建议将摄像头切换发生问题的工程发邮件到:chenxs@bairuitech.com,我们帮您调试一下,谢谢!
回复 支持 反对

使用道具 举报

4

主题

21

帖子

62

积分

注册会员

Rank: 2

积分
62
14#
 楼主| 发表于 2014-11-11 10:25:35 | 只看该作者
没有用storyboard和nib直接在loadView中创建视图
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-23 05:49 , Processed in 0.138623 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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