AnyChat技术支持论坛
标题: 自定义tabbar item弹出好友列表,用的addsubview后点table无法切换视频原因 [打印本页]
作者: 525776828yyc 时间: 2014-9-29 16:48
标题: 自定义tabbar item弹出好友列表,用的addsubview后点table无法切换视频原因
2014-09-29 16:46:27.380 AnyChat[17419:60b] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
2014-09-29 16:46:27.381 AnyChat[17419:60b] Load libanychatcore.so success!(V5.0 Build Time:Aug 26 2014 10:05:00)
2014-09-29 16:46:27.383 AnyChat[17419:60b] Load libmediautil.so success!(V5.0 Build Time:Aug 26 2014 10:05:28)
2014-09-29 16:46:27.384 AnyChat[17419:60b] Load libmediashow.so success!(V5.0 Build Time:Aug 26 2014 10:05:26)
2014-09-29 16:46:27.385 AnyChat[17419:60b] Load libmediacore.so success!(V5.0 Build Time:Aug 26 2014 10:05:21)
2014-09-29 16:46:36.408 AnyChat[17419:60b] Invoke BRAC_Connect(demo.anychat.cn,8906)=0
2014-09-29 16:46:36.408 AnyChat[17419:60b] Invoke LoginServer(username=abc)
2014-09-29 16:46:36.512 AnyChat[17419:3403] CheckClientSocketLink Connect(ip=121.199.51.198,port=8906)
2014-09-29 16:46:36.576 AnyChat[17419:3403] Server version: V5.1(Build Time:2014-09-23 22:23:30, Server OS:Windows)
2014-09-29 16:46:36.587 AnyChat[17419:3403] Message OnConnect(bSuccess:1, errorcode=0)
2014-09-29 16:46:37.824 AnyChat[17419:3403] OnReceiveUserDefine(dwSrcUserId:0, dwTarUserId:-1, dwCommand:13, wParam:0, lParam:0, dwBufSize:212)
2014-09-29 16:46:37.845 AnyChat[17419:3403] Message OnLoginSystem(userid=7765,errorcode=0,username=abc), msg deliver worked(0)
2014-09-29 16:46:37.846 AnyChat[17419:3403] Load libmediautil.so success!(V5.0 Build Time:Aug 26 2014 10:05:28)
2014-09-29 16:46:37.846 AnyChat[17419:3403] Load libmediashow.so success!(V5.0 Build Time:Aug 26 2014 10:05:26)
2014-09-29 16:46:37.847 AnyChat[17419:3403] Load libmediacore.so success!(V5.0 Build Time:Aug 26 2014 10:05:21)
2014-09-29 16:46:37.852 AnyChat[17419:60b] Invoke BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2014-09-29 16:46:37.852 AnyChat[17419:60b] Apply video parameter:352x288, bitrate:180000, quality:3, gop:24, fps:12, preset:2, codec:0
2014-09-29 16:46:37.911 AnyChat[17419:3403] Connection to streaming media server successfully!(udp delay:32ms)
2014-09-29 16:46:38.855 AnyChat[17419:60b] Invoke EnterRoom(roomid=1)
2014-09-29 16:46:39.989 AnyChat[17419:3403] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=4)
2014-09-29 16:46:40.912 AnyChat[17419:3403] Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2014-09-29 16:46:40.945 AnyChat[17419:3403] Message OnReceiveOnlineUser(count=4,roomid=1)
2014-09-29 16:46:41.315 AnyChat[17419:4e2b] socket error, disconnected by peer!, bTcp(1) - userid(7525)
2014-09-29 16:46:43.116 AnyChat[17419:60b] Invoke UserSpeakControl(userid=-1,bOpen=1)
2014-09-29 16:46:43.117 AnyChat[17419:60b] Audio record control:1, result:-1
2014-09-29 16:46:43.117 AnyChat[17419:60b] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0x9e57570, l:0, t:0, r:0, b:0)
2014-09-29 16:46:43.118 AnyChat[17419:60b] Invoke UserCameraControl(userid=-1,bOpen=1)
2014-09-29 16:46:43.118 AnyChat[17419:60b] Invoke UserSpeakControl(userid=7525,bOpen=1)
2014-09-29 16:46:43.127 AnyChat[17419:3707] Default Audio Capture Driver()
2014-09-29 16:46:43.134 AnyChat[17419:60b] Invoke BRAC_SetVideoPos(dwUserId:7525, hWnd:0xa1edaf0, l:0, t:0, r:0, b:0)
2014-09-29 16:46:43.134 AnyChat[17419:3707] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2014-09-29 16:46:43.135 AnyChat[17419:60b] Invoke UserCameraControl(userid=7525,bOpen=1)
2014-09-29 16:46:43.147 AnyChat[17419:3707] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
2014-09-29 16:46:43.256 AnyChat[17419:3707] video init finish: 0x0, 0fps, fmt:-1, ret:10001
2014-09-29 16:46:43.256 AnyChat[17419:3707] ****Open Local Video Fail,ErrorCode:10001
2014-09-29 16:46:44.358 AnyChat[17419:60b] Selected is 0
2014-09-29 16:46:46.860 AnyChat[17419:60b] Invoke UserSpeakControl(userid=-1,bOpen=1)
2014-09-29 16:46:46.860 AnyChat[17419:60b] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0x9e57570, l:0, t:0, r:0, b:0)
2014-09-29 16:46:46.860 AnyChat[17419:60b] Invoke UserCameraControl(userid=-1,bOpen=1)
2014-09-29 16:46:46.861 AnyChat[17419:60b] Invoke UserSpeakControl(userid=7525,bOpen=1)
2014-09-29 16:46:46.861 AnyChat[17419:60b] Invoke BRAC_SetVideoPos(dwUserId:7525, hWnd:0xa1edaf0, l:0, t:0, r:0, b:0)
2014-09-29 16:46:46.862 AnyChat[17419:60b] Invoke UserCameraControl(userid=7525,bOpen=1)
2014-09-29 16:46:46.960 AnyChat[17419:3707] video init finish: 0x0, 0fps, fmt:-1, ret:10001
2014-09-29 16:46:46.961 AnyChat[17419:3707] ****Open Local Video Fail,ErrorCode:10001
2014-09-29 16:46:49.298 AnyChat[17419:60b] Invoke UserSpeakControl(userid=-1,bOpen=1)
2014-09-29 16:46:49.298 AnyChat[17419:60b] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0x9e57570, l:0, t:0, r:0, b:0)
2014-09-29 16:46:49.299 AnyChat[17419:60b] Invoke UserCameraControl(userid=-1,bOpen=1)
2014-09-29 16:46:49.299 AnyChat[17419:60b] Invoke UserSpeakControl(userid=7662,bOpen=1)
2014-09-29 16:46:49.300 AnyChat[17419:60b] Invoke BRAC_SetVideoPos(dwUserId:7662, hWnd:0xa1edaf0, l:0, t:0, r:0, b:0)
2014-09-29 16:46:49.300 AnyChat[17419:60b] Invoke UserCameraControl(userid=7662,bOpen=1)
2014-09-29 16:46:49.399 AnyChat[17419:3707] video init finish: 0x0, 0fps, fmt:-1, ret:10001
2014-09-29 16:46:49.400 AnyChat[17419:3707] ****Open Local Video Fail,ErrorCode:10001
2014-09-29 16:46:50.514 AnyChat[17419:60b] Invoke UserSpeakControl(userid=-1,bOpen=1)
2014-09-29 16:46:50.514 AnyChat[17419:60b] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0x9e57570, l:0, t:0, r:0, b:0)
2014-09-29 16:46:50.515 AnyChat[17419:60b] Invoke UserCameraControl(userid=-1,bOpen=1)
2014-09-29 16:46:50.515 AnyChat[17419:60b] Invoke UserSpeakControl(userid=7759,bOpen=1)
2014-09-29 16:46:50.516 AnyChat[17419:60b] Invoke BRAC_SetVideoPos(dwUserId:7759, hWnd:0xa1edaf0, l:0, t:0, r:0, b:0)
2014-09-29 16:46:50.516 AnyChat[17419:60b] Invoke UserCameraControl(userid=7759,bOpen=1)
2014-09-29 16:46:50.616 AnyChat[17419:3707] video init finish: 0x0, 0fps, fmt:-1, ret:10001
2014-09-29 16:46:50.617 AnyChat[17419:3707] ****Open Local Video Fail,ErrorCode:10001
作者: admin 时间: 2014-9-29 16:52
2014-09-29 16:46:27.381 AnyChat[17419:60b] Load libanychatcore.so success!(V5.0 Build Time:Aug 26 2014 10:05:00
您好,建议升级SDK到最新版本。
另外请将打开视频部分的代码帖出来,我们帮您分析一下,谢谢。
作者: 525776828yyc 时间: 2014-10-8 11:44
还有你们demo里没有文字聊天的功能?
作者: admin 时间: 2014-10-8 11:50
支持的,发送文字消息的API接口:- // 传送文本消息
- + (int) SendTextMessage: (int) dwUserid : (BOOL) bSecret : (NSString*) lpMsgBuf;
复制代码 接收文字消息的事件:- // AnyChat 文字消息事件协议
- @protocol AnyChatTextMsgDelegate <NSObject>
- // 发送文字的回调函数
- - (void) OnAnyChatTextMsgCallBack:(int) dwFromUserid : (int) dwToUserid : (BOOL) bSecret : (NSString*) lpMsgBuf;
- @end
复制代码
作者: 525776828yyc 时间: 2014-10-17 10:55
2014-10-17 10:52:09.006 helloAnyChat[56976:60b] Application windows are expected to have a root view controller at the end of application launch
2014-10-17 10:52:09.047 helloAnyChat[56976:60b] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
2014-10-17 10:52:09.050 helloAnyChat[56976:60b] Load libanychatcore.so success!(V5.1 Build Time:Sep 23 2014 11:34:29)
2014-10-17 10:52:09.135 helloAnyChat[56976:60b] Load libmediautil.so success!(V5.1 Build Time:Sep 23 2014 11:35:26)
2014-10-17 10:52:09.136 helloAnyChat[56976:60b] Load libmediashow.so success!(V5.1 Build Time:Sep 23 2014 11:35:23)
2014-10-17 10:52:09.138 helloAnyChat[56976:60b] Load libmediacore.so success!(V5.1 Build Time:Sep 23 2014 11:35:16)
2014-10-17 10:52:11.175 helloAnyChat[56976:60b] Invoke LogoutServer(userid=-1) Elapse:7 ms
2014-10-17 10:52:11.176 helloAnyChat[56976:60b] Invoke BRAC_Connect(demo.anychat.cn,8906)=0
2014-10-17 10:52:11.180 helloAnyChat[56976:60b] Invoke LoginServer(username=HelloAnyChat)
2014-10-17 10:52:11.268 helloAnyChat[56976:3803] CheckClientSocketLink Connect(ip=121.199.51.198,port=8906)
2014-10-17 10:52:11.342 helloAnyChat[56976:3803] Server version: V5.1(Build Time:2014-09-23 22:23:30, Server OS:Windows)
2014-10-17 10:52:11.364 helloAnyChat[56976:3803] Message OnConnect(bSuccess:1, errorcode=0)
2014-10-17 10:52:11.703 helloAnyChat[56976:3803] Message OnLoginSystem(userid=-6832,errorcode=0,username=HelloAnyChat), msg deliver worked(0)
2014-10-17 10:52:11.704 helloAnyChat[56976:3803] Load libmediautil.so success!(V5.1 Build Time:Sep 23 2014 11:35:26)
2014-10-17 10:52:11.705 helloAnyChat[56976:3803] Load libmediashow.so success!(V5.1 Build Time:Sep 23 2014 11:35:23)
2014-10-17 10:52:11.705 helloAnyChat[56976:3803] Load libmediacore.so success!(V5.1 Build Time:Sep 23 2014 11:35:16)
2014-10-17 10:52:11.708 helloAnyChat[56976:60b] Invoke EnterRoom(roomid=1)
2014-10-17 10:52:11.823 helloAnyChat[56976:3803] Connection to streaming media server successfully!(udp delay:58ms)
2014-10-17 10:52:11.877 helloAnyChat[56976:3803] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=6)
2014-10-17 10:52:11.927 helloAnyChat[56976:3803] Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2014-10-17 10:52:11.928 helloAnyChat[56976:3803] Message OnReceiveOnlineUser(count=7,roomid=1)
2014-10-17 10:52:12.109 helloAnyChat[56976:3803] On Remote UserCameraControl(dwUserId:-6831, bOpen:1)
2014-10-17 10:52:12.130 helloAnyChat[56976:3803] On Remote UserSpeakControl(dwUserId:-6831, bOpen:1)
2014-10-17 10:52:12.203 helloAnyChat[56976:3803] Message OnP2PConnectState(userid=-6708, state=2)
2014-10-17 10:52:12.627 helloAnyChat[56976:3803] Message OnP2PConnectState(userid=-6821, state=2)
2014-10-17 10:52:12.681 helloAnyChat[56976:3803] Message OnP2PConnectState(userid=-6821, state=3)
2014-10-17 10:52:14.775 helloAnyChat[56976:3803] Message OnUserLeaveRoom(userid=-6831,siteindex=2)
2014-10-17 10:52:16.756 helloAnyChat[56976:60b] Invoke UserSpeakControl(userid=-1,bOpen=1)
2014-10-17 10:52:16.865 helloAnyChat[56976:60b] Audio record control:1, result:-1
2014-10-17 10:52:16.869 helloAnyChat[56976:60b] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0xa082bc0, l:0, t:0, r:0, b:0)
2014-10-17 10:52:16.975 helloAnyChat[56976:4607] Default Audio Capture Driver()
2014-10-17 10:52:16.975 helloAnyChat[56976:60b] Invoke UserCameraControl(userid=-1,bOpen=1)
2014-10-17 10:52:16.981 helloAnyChat[56976:4607] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2014-10-17 10:52:16.981 helloAnyChat[56976:60b] Invoke UserSpeakControl(userid=-6821,bOpen=1)
2014-10-17 10:52:17.138 helloAnyChat[56976:4607] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
2014-10-17 10:52:17.138 helloAnyChat[56976:60b] Invoke BRAC_SetVideoPos(dwUserId:-6821, hWnd:0xa0a1630, l:0, t:0, r:0, b:0)
2014-10-17 10:52:17.139 helloAnyChat[56976:60b] Invoke UserCameraControl(userid=-6821,bOpen=1)
2014-10-17 10:52:17.143 helloAnyChat[56976:4607] video init finish: 0x0, 0fps, fmt:-1, ret:10001
2014-10-17 10:52:17.426 helloAnyChat[56976:4607] ****Open Local Video Fail,ErrorCode:10001
2014-10-17 10:52:19.158 helloAnyChat[56976:3803] Message OnUserLeaveRoom(userid=-6823,siteindex=5)
2014-10-17 10:52:19.855 helloAnyChat[56976:3f03] userid(-6821) video decode delay:2ms
2014-10-17 10:52:21.984 helloAnyChat[56976:3803] Message OnUserEnterRoom(userid=-6833,nickname=xcode6,siteindex=2)
2014-10-17 10:52:26.268 helloAnyChat[56976:3b0b] socket error, disconnected by peer!, bTcp(1) - userid(-6831)
2014-10-17 10:52:27.735 helloAnyChat[56976:3803] Message OnP2PConnectState(userid=-6833, state=2)
本地摄像头为什么打不开?
作者: admin 时间: 2014-10-17 11:00
您好,请重新下载[ur=http://www.anychat.cn/download.html?t=iOSl]AnyChat for iOS SDK[/url],升级库文件,我们有对helloAnyChat程序进行优化。
作者: 525776828yyc 时间: 2014-10-17 11:38
2014-10-17 11:37:47.013 helloAnyChat[57240:60b] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
2014-10-17 11:37:47.020 helloAnyChat[57240:60b] Load libanychatcore.so success!(V5.1 Build Time:Oct 14 2014 11:32:01)
2014-10-17 11:37:47.026 helloAnyChat[57240:60b] Load libmediautil.so success!(V5.2 Build Time:Oct 14 2014 11:32:51)
2014-10-17 11:37:47.027 helloAnyChat[57240:60b] Load libmediashow.so success!(V5.1 Build Time:Oct 14 2014 11:32:47)
2014-10-17 11:37:47.029 helloAnyChat[57240:60b] Load libmediacore.so success!(V5.1 Build Time:Oct 14 2014 11:32:39)
2014-10-17 11:37:48.195 helloAnyChat[57240:60b] Invoke BRAC_Connect(demo.anychat.cn,8906)=0
2014-10-17 11:37:48.196 helloAnyChat[57240:60b] Invoke LoginServer(username=HelloAnyChat)
2014-10-17 11:37:48.200 helloAnyChat[57240:3603] CheckClientSocketLink Connect(ip=121.199.51.198,port=8906)
2014-10-17 11:37:48.359 helloAnyChat[57240:3603] Server version: V5.1(Build Time:2014-09-23 22:23:30, Server OS:Windows)
2014-10-17 11:37:48.380 helloAnyChat[57240:3603] Message OnConnect(bSuccess:1, errorcode=0)
2014-10-17 11:37:48.849 helloAnyChat[57240:3603] Message OnLoginSystem(userid=-6926,errorcode=0,username=HelloAnyChat), msg deliver worked(0)
2014-10-17 11:37:48.850 helloAnyChat[57240:3603] Load libmediautil.so success!(V5.2 Build Time:Oct 14 2014 11:32:51)
2014-10-17 11:37:48.851 helloAnyChat[57240:3603] Load libmediashow.so success!(V5.1 Build Time:Oct 14 2014 11:32:47)
2014-10-17 11:37:48.852 helloAnyChat[57240:3603] Load libmediacore.so success!(V5.1 Build Time:Oct 14 2014 11:32:39)
2014-10-17 11:37:48.857 helloAnyChat[57240:60b] Invoke EnterRoom(roomid=1)
2014-10-17 11:37:48.970 helloAnyChat[57240:3603] Connection to streaming media server successfully!(udp delay:58ms)
2014-10-17 11:37:48.992 helloAnyChat[57240:3603] Message OnEnterRoom(roomid=1,errorcode=0,siteindex=3)
2014-10-17 11:37:49.042 helloAnyChat[57240:3603] Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2014-10-17 11:37:49.043 helloAnyChat[57240:3603] Message OnReceiveOnlineUser(count=6,roomid=1)
2014-10-17 11:37:49.362 helloAnyChat[57240:3603] On Remote UserCameraControl(dwUserId:-6924, bOpen:1)
2014-10-17 11:37:49.372 helloAnyChat[57240:3603] On Remote UserSpeakControl(dwUserId:-6924, bOpen:1)
2014-10-17 11:37:50.733 helloAnyChat[57240:420b] socket error, disconnected by peer!, bTcp(1) - userid(-6872)
2014-10-17 11:37:53.031 helloAnyChat[57240:60b] Invoke UserSpeakControl(userid=-1,bOpen=1)
2014-10-17 11:37:53.031 helloAnyChat[57240:60b] Audio record control:1, result:-1
2014-10-17 11:37:53.032 helloAnyChat[57240:60b] Invoke BRAC_SetVideoPos(dwUserId:-1, hWnd:0xa02ca10, l:0, t:0, r:0, b:0)
2014-10-17 11:37:53.036 helloAnyChat[57240:60b] Invoke UserCameraControl(userid=-1,bOpen=1)
2014-10-17 11:37:53.036 helloAnyChat[57240:3907] Default Audio Capture Driver()
2014-10-17 11:37:53.037 helloAnyChat[57240:60b] Invoke UserSpeakControl(userid=11648,bOpen=1)
2014-10-17 11:37:53.037 helloAnyChat[57240:3907] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2014-10-17 11:37:53.038 helloAnyChat[57240:60b] Invoke BRAC_SetVideoPos(dwUserId:11648, hWnd:0xa02ea10, l:0, t:0, r:0, b:0)
2014-10-17 11:37:53.038 helloAnyChat[57240:3907] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
2014-10-17 11:37:53.039 helloAnyChat[57240:60b] Invoke UserCameraControl(userid=11648,bOpen=1)
2014-10-17 11:37:53.140 helloAnyChat[57240:3907] video init finish: 0x0, 0fps, fmt:-1, ret:10001
2014-10-17 11:37:53.141 helloAnyChat[57240:3907] ****Open Local Video Fail,ErrorCode:10001
还是打不开
作者: 佰锐技术-卓剑锐 时间: 2014-10-17 11:44
您好,您是否有找另外的机子试过呢?用我们标准的demo?
作者: admin 时间: 2014-10-17 11:47
您好,请问您是在什么设备上运行的?iOS版本号是多少?
是虚拟机吗?建议使用真机运行,谢谢。
作者: 525776828yyc 时间: 2014-10-21 10:29
我用的虚拟机不行是吗?还有问下有没有ios的传送文件的相关示例代码,谢谢啦~
作者: 梁家初 时间: 2014-10-21 11:06
本帖最后由 梁家初 于 2014-10-21 11:49 编辑
苹果iOS开发的模拟器只是提供 iphone,ipad 的运行环境,硬件模拟是不提供。只有真机测试才能使用摄像头。
所以如果是用模拟器运行我们的 Demo 工程,我们anychat回调显示
“Open Local Video Fail”是正常,
作者: 525776828yyc 时间: 2014-10-21 14:00
嗯,明白了。那接收图片的示例有么
作者: chenxs 时间: 2014-10-21 15:44
本帖最后由 chenxs 于 2014-10-21 15:46 编辑
目前还没有 文件传输的 Demo,我们现在整理一个包含文件传输的 AnyChat 的示例工程,稍后版本会推出。
收图片的功能,可以参考开发文档的- + (int) TransFile: (int) dwUserid: (NSString*) lpLocalPathName: (int) wParam: (int) lParam: (int) dwFlags
复制代码 方法的使用。
欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/) |
Powered by Discuz! X3 |