|
6#
楼主 |
发表于 2016-2-25 16:27:14
|
只看该作者
你好,请问通知我的日志可以看出来问题是出在服务端还是客户端吗?
我现在是这样处理的。在视频聊天的控制器中:
在断网链接的回调函数里:
最后是在上一张图中接收通知,调用视频聊天的必要函数:
可是 最后当上图中的回调函数被调用后,我的程序就崩溃了。
下面是我的日志内容:
2016-02-25 16:15:45.547 MchatDemo[3295:1063411] ——————————————————————————OnAnyChatConnect:———————————————————————————————1————登陆服务器成功!
2016-02-25 16:15:45.831 MchatDemo[3295:1063411] ——————————————————————————OnAnyChatLogin:————————————————————————————————-2————正在进入房间
2016-02-25 16:15:46.409 MchatDemo[3295:1063411] ———————VideoVC——————————————————————myEnterRoomChat—————————————————当前房间里除了我有0个人
2016-02-25 16:15:46.415 MchatDemo[3295:1063411] ——————————————————————————OnAnyChatOnlineUser:————————————————————————————4————【跳转到聊天界面】
2016-02-25 16:15:46.417 MchatDemo[3295:1063411] AudioPlayback (
"1-speaker",
"2-receiver(default)"
)
2016-02-25 16:15:49.838 MchatDemo[3295:1063411] ——————————————————————————————————————————————————————————————————————————————————关闭----本地麦克风
2016-02-25 16:15:53.041 MchatDemo[3295:1063411] pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock
2016-02-25 16:15:53.043 MchatDemo[3295:1063411] ------------------------------------targerUserID == -168
2016-02-25 16:15:53.043 MchatDemo[3295:1063411] ——————————————————————————————————————————————————————————————————————————5————用户进入房间消息【videoVC.pvBlock 】】 dwUserId == -168
2016-02-25 16:15:53.045 MchatDemo[3295:1063411] ——————————————————————————————————————————————————————————————————————————5————self.onlineUserMArray == (
"-168"
)
2016-02-25 16:16:04.038 MchatDemo[3295:1063411] pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock pvBlock
2016-02-25 16:16:04.038 MchatDemo[3295:1063411] ------------------------------------targerUserID == -170
2016-02-25 16:16:04.039 MchatDemo[3295:1063411] ——————————————————————————————————————————————————————————————————————————5————用户进入房间消息【videoVC.pvBlock 】】 dwUserId == -170
2016-02-25 16:16:04.039 MchatDemo[3295:1063411] ——————————————————————————————————————————————————————————————————————————5————self.onlineUserMArray == (
"-170",
"-168"
)
2016-02-25 16:16:26.184 MchatDemo[3295:1063511] WARNING: -[<AVCaptureConnection: 0x9a4d80> isVideoMinFrameDurationSupported] is deprecated. Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2016-02-25 16:16:26.186 MchatDemo[3295:1063511] WARNING: -[<AVCaptureConnection: 0x9a4d80> setVideoMinFrameDuration:] is deprecated. Please use AVCaptureDevice setActiveVideoMinFrameDuration
[libx264 @ 0x1898410] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x1898410] profile High, level 2.2
2016-02-25 16:19:26.647 MchatDemo[3295:1063411] ——————————————————————————————————————————————————————————————————————————————————打开----本地麦克风
[libx264 @ 0x1898410] frame I:179 Avg QP:21.65 size: 15104
[libx264 @ 0x1898410] frame P:4919 Avg QP:20.89 size: 2543
[libx264 @ 0x1898410] mb I I16..4: 21.0% 52.2% 26.8%
[libx264 @ 0x1898410] mb P I16..4: 2.3% 1.8% 0.1% P16..4: 29.0% 6.6% 2.7% 0.0% 0.0% skip:57.6%
[libx264 @ 0x1898410] 8x8 transform intra:47.7% inter:37.0%
[libx264 @ 0x1898410] coded y,uvDC,uvAC intra: 54.2% 44.0% 11.8% inter: 10.5% 11.5% 0.0%
[libx264 @ 0x1898410] i16 v,h,dc,p: 34% 38% 13% 15%
[libx264 @ 0x1898410] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 7% 33% 35% 2% 4% 3% 6% 3% 7%
[libx264 @ 0x1898410] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 34% 16% 4% 8% 4% 7% 5% 11%
[libx264 @ 0x1898410] i8c dc,h,v,p: 60% 25% 10% 4%
[libx264 @ 0x1898410] Weighted P-Frames: Y:2.3% UV:0.2%
[libx264 @ 0x1898410] kb/s:358.05
2016-02-25 16:22:06.881 MchatDemo[3295:1063411] ———————VideoVC——————————————————————myEnterRoomChat—————————————————当前房间里除了我有0个人
2016-02-25 16:22:06.882 MchatDemo[3295:1063411] 现在正在建立一次重新连接
2016-02-25 16:22:08.839 MchatDemo[3295:1063411] ——————————————————————————OnAnyChatConnect:———————————————————————————————1————登陆服务器失败!
2016-02-25 16:22:09.357 MchatDemo[3295:1063411] ——————————————————————————OnAnyChatLogin:————————————————————————————————-2————正在进入房间
2016-02-25 16:22:09.823 MchatDemo[3295:1063411] ———————VideoVC——————————————————————myEnterRoomChat—————————————————当前房间里除了我有2个人
2016-02-25 16:22:09.824 MchatDemo[3295:1063411] Warning: Attempt to present <VideoVC: 0x188d200> on <ViewController: 0xa30200> whose view is not in the window hierarchy!
2016-02-25 16:22:09.824 MchatDemo[3295:1063411] ——————————————————————————OnAnyChatOnlineUser:————————————————————————————4————【跳转到聊天界面】
|
|