设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz

小米5做视频调试时,本地视频打开了,但是获取不到对方的视频图像,是黑屏

查看数: 16788 | 评论数: 22 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
sss
发布时间: 2016-6-24 19:09

正文摘要:

小米5做视频调试时,本地视频打开了,但是获取不到对方的视频图像,是黑屏,对方也获取不到小米5的视频图像,添加的权限及视频,音频初始化代码跟helloanychat的音视频初始化代码完全一样,并且小米5在打开音视频时 ...

回复

rendersliver 发表于 2016-8-22 14:24:58
小米手机有个悬浮窗的开关,在应用-权限设置里面,楼主可以看看有没有打开。
sss 发表于 2016-6-27 14:54:15
sss 发表于 2016-6-27 14:48
升级后解决问题了,谢谢你啦~

我还有一个问题啊,这个小米5的手机在摄像头和录音权限没有开启的情况下,打开视频的时候为什么没有提示去开启摄像头和录音的权限呢?其他手机都有提示
sss 发表于 2016-6-27 14:48:38
佰锐科技-邵光清 发表于 2016-6-27 12:35
您好,
是Android OS SDK Version:23的问题,请升级到最新的版本,可以解决这个问题:AnyChat版本升级步骤 ...

升级后解决问题了,谢谢你啦~
佰锐科技-邵光清 发表于 2016-6-27 12:35:27
您好,
Load libmediautil_v7.so failed,multimedia functions will fail!(dlopen failed: /data/app/com.xinxunw-1/lib/arm/libmediautil_v7.so: has text relocations)

是Android OS SDK Version:23的问题,请升级到最新的版本,可以解决这个问题:AnyChat版本升级步骤指南
另外,如果是普通的音视频通话,不必调用VideoCallControl的;如果需要【视频呼叫】功能才需要调用VideoCallControl,可以参考callcenter这个demo;
sss 发表于 2016-6-27 11:34:05
佰锐科技-梁国桦 发表于 2016-6-27 09:30
您好,您是说其他小米手机跑这个小米5的demo也可以吗??另外,手机端的日志文件就在手机的根目录下,文 ...

不是的,是hello anychat的demo在小米5上是OK的,我的项目在小米5上不行,在小米2上是OK的,小米5的Android版本是6.0MRA58K,日志文件在下面的回复中。
sss 发表于 2016-6-27 11:07:22
本帖最后由 sss 于 2016-6-27 12:00 编辑
佰锐科技-温俊俊 发表于 2016-6-27 09:33
您好,请参考我们的正确的开发流程检查您的代码顺序http://www.anychat.cn/faq/index. ... 2&id=193&artl ...

[2016-06-27 11:36:04(287)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-06-27 11:36:04(288)]        Load libanychatcore.so success!(V5.3 Build Time:Aug 10 2015 05:31:49)
[2016-06-27 11:36:04(288)]        Android OS SDK Version:23, Support ARMv7:2, Support Neon:4
[2016-06-27 11:36:04(324)]        Load libmediautil_v7.so failed,multimedia functions will fail!(dlopen failed: /data/app/com.xinxunw-1/lib/arm/libmediautil_v7.so: has text relocations)
[2016-06-27 11:36:04(346)]        Load libmediashow.so success!(V5.3 Build Time:Aug 10 2015 05:32:42)
[2016-06-27 11:36:04(363)]        Load libmediacore.so success!(V5.3 Build Time:Aug 10 2015 05:32:44)
[2016-06-27 11:36:04(365)]        MI 5(Xiaomi) msm8996  6.0
[2016-06-27 11:36:04(366)]        Invoke        Connect(**********,****)=0
[2016-06-27 11:36:04(418)]        CheckClientSocketLink         Connect(ip=************,port=****)
[2016-06-27 11:36:04(449)]        Server version: V5.3(Build Time:2015-08-07 20:29:06, Server OSinux)
[2016-06-27 11:36:04(490)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2016-06-27 11:36:04(497)]        Invoke        LoginServer(username=咯嘛)
[2016-06-27 11:36:04(790)]        Message        OnLoginSystem(userid=3042,errorcode=0,username=咯嘛), msg deliver worked(0)
[2016-06-27 11:36:04(845)]        Load libmediautil_v7.so failed,multimedia functions will fail!(dlopen failed: /data/app/com.xinxunw-1/lib/arm/libmediautil_v7.so: has text relocations)
[2016-06-27 11:36:04(846)]        Server running time: 0 days, 0 hours, 6 minutes, license mode:1
[2016-06-27 11:36:04(848)]        Invoke        EnterRoom(roomid=244)
[2016-06-27 11:36:04(857)]        Connection to streaming media server successfully!(udp delay:5ms)
[2016-06-27 11:36:04(991)]        Message        OnEnterRoom(roomid=244,errorcode=0,siteindex=1)
[2016-06-27 11:36:04(994)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2016-06-27 11:36:04(996)]        Message        OnReceiveOnlineUser(count=2,roomid=244)
[2016-06-27 11:36:05(054)]        Invoke        VideoCallControl(EventType:1, UserId:3048, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-06-27 11:36:05(153)]        Message        OnVideoCallEvent(EventType:2, UserId:3048, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-06-27 11:36:05(360)]        Apply video parameter:720x1280, bitrate:800kbps, quality:4, gop:100, fps:25, preset:5, codec:1
[2016-06-27 11:36:05(361)]        Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2016-06-27 11:36:05(361)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2016-06-27 11:36:05(361)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2016-06-27 11:36:05(363)]        Invoke        UserCameraControl(userid=3048, bOpen=1, stream=0)
[2016-06-27 11:36:05(363)]        Invoke        UserSpeakControl(userid=3048,bOpen=1)
[2016-06-27 11:36:05(368)]        Invoke        UserCameraControl(userid=-1, bOpen=1, stream=0)
[2016-06-27 11:36:05(368)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2016-06-27 11:36:05(421)]        Message        OnP2PConnectState(userid=3048, state=2)
[2016-06-27 11:36:05(505)]        APPLOG        Camera Preview size: 1920 x 1080
[2016-06-27 11:36:05(506)]        APPLOG        Camera Preview size: 1440 x 1080
[2016-06-27 11:36:05(506)]        APPLOG        Camera Preview size: 1280 x 960
[2016-06-27 11:36:05(507)]        APPLOG        Camera Preview size: 1280 x 720
[2016-06-27 11:36:05(507)]        APPLOG        Camera Preview size: 864 x 480
[2016-06-27 11:36:05(508)]        APPLOG        Camera Preview size: 800 x 480
[2016-06-27 11:36:05(508)]        APPLOG        Camera Preview size: 768 x 432
[2016-06-27 11:36:05(509)]        APPLOG        Camera Preview size: 720 x 480
[2016-06-27 11:36:05(509)]        APPLOG        Camera Preview size: 640 x 640
[2016-06-27 11:36:05(510)]        APPLOG        Camera Preview size: 640 x 480
[2016-06-27 11:36:05(510)]        APPLOG        Camera Preview size: 640 x 360
[2016-06-27 11:36:05(510)]        APPLOG        Camera Preview size: 576 x 432
[2016-06-27 11:36:05(511)]        APPLOG        Camera Preview size: 480 x 360
[2016-06-27 11:36:05(511)]        APPLOG        Camera Preview size: 480 x 320
[2016-06-27 11:36:05(512)]        APPLOG        Camera Preview size: 384 x 288
[2016-06-27 11:36:05(512)]        APPLOG        Camera Preview size: 352 x 288
[2016-06-27 11:36:05(513)]        APPLOG        Camera Preview size: 320 x 240
[2016-06-27 11:36:05(513)]        APPLOG        Camera Preview size: 240 x 160
[2016-06-27 11:36:05(514)]        APPLOG        Camera Preview size: 176 x 144
[2016-06-27 11:36:05(514)]        APPLOG        Camera FrameRate: 7000 , 30000
[2016-06-27 11:36:05(515)]        APPLOG        Camera FrameRate: 30000 , 30000
[2016-06-27 11:36:05(574)]        Message        OnP2PConnectState(userid=3048, state=3)
[2016-06-27 11:36:05(597)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-06-27 11:36:05(598)]        Invoke        SetInputVideoFormat(pixfmt:8, 320x240, 30fps, flags:0)
[2016-06-27 11:36:05(600)]        video init finish:320x240, NV21, fps:30, codecid:1
[2016-06-27 11:36:05(608)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-06-27 11:36:05(612)]        Invoke        SetInputVideoFormat(pixfmt:8, 320x240, 30fps, flags:0)
[2016-06-27 11:36:05(612)]        video init finish:320x240, NV21, fps:30, codecid:1
[2016-06-27 11:36:05(621)]        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
[2016-06-27 11:36:05(622)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2016-06-27 11:36:05(622)]        Audio codec init, handle:-1, 11, 1, 16000, 16, 15850
[2016-06-27 11:36:05(725)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-06-27 11:36:05(726)]        Convert YUV420P Failed!
[2016-06-27 11:36:05(802)]        On Remote UserSpeakControl(dwUserId:3048, bOpen:1)
[2016-06-27 11:36:05(898)]        On Remote UserCameraControl(dwUserId:3048, bOpen:1)
[2016-06-27 11:36:12(165)]        Invoke        UserCameraControl(userid=3048, bOpen=0, stream=0)
[2016-06-27 11:36:12(167)]        Invoke        UserSpeakControl(userid=3048,bOpen=0)
[2016-06-27 11:36:12(172)]        Invoke        UserCameraControl(userid=-1, bOpen=0, stream=0)
[2016-06-27 11:36:12(175)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)
[2016-06-27 11:36:12(228)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=0)
[2016-06-27 11:36:12(314)]        Invoke        UserCameraControl(userid=3048, bOpen=0, stream=0)
[2016-06-27 11:36:12(318)]        Invoke        UserSpeakControl(userid=3048,bOpen=0)
[2016-06-27 11:36:12(320)]        Invoke        UserCameraControl(userid=-1, bOpen=0, stream=0)
[2016-06-27 11:36:12(321)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)
[2016-06-27 11:36:12(333)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=0)
[2016-06-27 11:36:12(689)]        Invoke        LeaveRoom(roomid=-1)        Elapse:100 ms
[2016-06-27 11:36:12(703)]        Invoke        LogoutServer(userid=3042)        Elapse:13 ms


sss 发表于 2016-6-27 11:07:01
本帖最后由 sss 于 2016-6-27 11:59 编辑
佰锐科技-邵光清 发表于 2016-6-27 09:56
您好,如果是参照helloanychat的demo写的,是怎么回事出现videocallcontrol呢?请提供日志,我们尽快分析 ...

[2016-06-27 11:36:04(287)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-06-27 11:36:04(288)]        Load libanychatcore.so success!(V5.3 Build Time:Aug 10 2015 05:31:49)
[2016-06-27 11:36:04(288)]        Android OS SDK Version:23, Support ARMv7:2, Support Neon:4
[2016-06-27 11:36:04(324)]        Load libmediautil_v7.so failed,multimedia functions will fail!(dlopen failed: /data/app/com.xinxunw-1/lib/arm/libmediautil_v7.so: has text relocations)
[2016-06-27 11:36:04(346)]        Load libmediashow.so success!(V5.3 Build Time:Aug 10 2015 05:32:42)
[2016-06-27 11:36:04(363)]        Load libmediacore.so success!(V5.3 Build Time:Aug 10 2015 05:32:44)
[2016-06-27 11:36:04(365)]        MI 5(Xiaomi) msm8996  6.0
[2016-06-27 11:36:04(366)]        Invoke        Connect(************,****)=0
[2016-06-27 11:36:04(418)]        CheckClientSocketLink         Connect(ip=***********,port=****)
[2016-06-27 11:36:04(449)]        Server version: V5.3(Build Time:2015-08-07 20:29:06, Server OSinux)
[2016-06-27 11:36:04(490)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2016-06-27 11:36:04(497)]        Invoke        LoginServer(username=咯嘛)
[2016-06-27 11:36:04(790)]        Message        OnLoginSystem(userid=3042,errorcode=0,username=咯嘛), msg deliver worked(0)
[2016-06-27 11:36:04(845)]        Load libmediautil_v7.so failed,multimedia functions will fail!(dlopen failed: /data/app/com.xinxunw-1/lib/arm/libmediautil_v7.so: has text relocations)
[2016-06-27 11:36:04(846)]        Server running time: 0 days, 0 hours, 6 minutes, license mode:1
[2016-06-27 11:36:04(848)]        Invoke        EnterRoom(roomid=244)
[2016-06-27 11:36:04(857)]        Connection to streaming media server successfully!(udp delay:5ms)
[2016-06-27 11:36:04(991)]        Message        OnEnterRoom(roomid=244,errorcode=0,siteindex=1)
[2016-06-27 11:36:04(994)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2016-06-27 11:36:04(996)]        Message        OnReceiveOnlineUser(count=2,roomid=244)
[2016-06-27 11:36:05(054)]        Invoke        VideoCallControl(EventType:1, UserId:3048, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2016-06-27 11:36:05(153)]        Message        OnVideoCallEvent(EventType:2, UserId:3048, ErrorCode:0, dwFlags:0x0, dwParam:0
[2016-06-27 11:36:05(360)]        Apply video parameter:720x1280, bitrate:800kbps, quality:4, gop:100, fps:25, preset:5, codec:1
[2016-06-27 11:36:05(361)]        Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2016-06-27 11:36:05(361)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2016-06-27 11:36:05(361)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2016-06-27 11:36:05(363)]        Invoke        UserCameraControl(userid=3048, bOpen=1, stream=0)
[2016-06-27 11:36:05(363)]        Invoke        UserSpeakControl(userid=3048,bOpen=1)
[2016-06-27 11:36:05(368)]        Invoke        UserCameraControl(userid=-1, bOpen=1, stream=0)
[2016-06-27 11:36:05(368)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2016-06-27 11:36:05(421)]        Message        OnP2PConnectState(userid=3048, state=2)
[2016-06-27 11:36:05(505)]        APPLOG        Camera Preview size: 1920 x 1080
[2016-06-27 11:36:05(506)]        APPLOG        Camera Preview size: 1440 x 1080
[2016-06-27 11:36:05(506)]        APPLOG        Camera Preview size: 1280 x 960
[2016-06-27 11:36:05(507)]        APPLOG        Camera Preview size: 1280 x 720
[2016-06-27 11:36:05(507)]        APPLOG        Camera Preview size: 864 x 480
[2016-06-27 11:36:05(508)]        APPLOG        Camera Preview size: 800 x 480
[2016-06-27 11:36:05(508)]        APPLOG        Camera Preview size: 768 x 432
[2016-06-27 11:36:05(509)]        APPLOG        Camera Preview size: 720 x 480
[2016-06-27 11:36:05(509)]        APPLOG        Camera Preview size: 640 x 640
[2016-06-27 11:36:05(510)]        APPLOG        Camera Preview size: 640 x 480
[2016-06-27 11:36:05(510)]        APPLOG        Camera Preview size: 640 x 360
[2016-06-27 11:36:05(510)]        APPLOG        Camera Preview size: 576 x 432
[2016-06-27 11:36:05(511)]        APPLOG        Camera Preview size: 480 x 360
[2016-06-27 11:36:05(511)]        APPLOG        Camera Preview size: 480 x 320
[2016-06-27 11:36:05(512)]        APPLOG        Camera Preview size: 384 x 288
[2016-06-27 11:36:05(512)]        APPLOG        Camera Preview size: 352 x 288
[2016-06-27 11:36:05(513)]        APPLOG        Camera Preview size: 320 x 240
[2016-06-27 11:36:05(513)]        APPLOG        Camera Preview size: 240 x 160
[2016-06-27 11:36:05(514)]        APPLOG        Camera Preview size: 176 x 144
[2016-06-27 11:36:05(514)]        APPLOG        Camera FrameRate: 7000 , 30000
[2016-06-27 11:36:05(515)]        APPLOG        Camera FrameRate: 30000 , 30000
[2016-06-27 11:36:05(574)]        Message        OnP2PConnectState(userid=3048, state=3)
[2016-06-27 11:36:05(597)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-06-27 11:36:05(598)]        Invoke        SetInputVideoFormat(pixfmt:8, 320x240, 30fps, flags:0)
[2016-06-27 11:36:05(600)]        video init finish:320x240, NV21, fps:30, codecid:1
[2016-06-27 11:36:05(608)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
[2016-06-27 11:36:05(612)]        Invoke        SetInputVideoFormat(pixfmt:8, 320x240, 30fps, flags:0)
[2016-06-27 11:36:05(612)]        video init finish:320x240, NV21, fps:30, codecid:1
[2016-06-27 11:36:05(621)]        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
[2016-06-27 11:36:05(622)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2016-06-27 11:36:05(622)]        Audio codec init, handle:-1, 11, 1, 16000, 16, 15850
[2016-06-27 11:36:05(725)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-06-27 11:36:05(726)]        Convert YUV420P Failed!
[2016-06-27 11:36:05(802)]        On Remote UserSpeakControl(dwUserId:3048, bOpen:1)
[2016-06-27 11:36:05(898)]        On Remote UserCameraControl(dwUserId:3048, bOpen:1)
[2016-06-27 11:36:12(165)]        Invoke        UserCameraControl(userid=3048, bOpen=0, stream=0)
[2016-06-27 11:36:12(167)]        Invoke        UserSpeakControl(userid=3048,bOpen=0)
[2016-06-27 11:36:12(172)]        Invoke        UserCameraControl(userid=-1, bOpen=0, stream=0)
[2016-06-27 11:36:12(175)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)
[2016-06-27 11:36:12(228)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=0)
[2016-06-27 11:36:12(314)]        Invoke        UserCameraControl(userid=3048, bOpen=0, stream=0)
[2016-06-27 11:36:12(318)]        Invoke        UserSpeakControl(userid=3048,bOpen=0)
[2016-06-27 11:36:12(320)]        Invoke        UserCameraControl(userid=-1, bOpen=0, stream=0)
[2016-06-27 11:36:12(321)]        Invoke        UserSpeakControl(userid=-1,bOpen=0)
[2016-06-27 11:36:12(333)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=0)
[2016-06-27 11:36:12(689)]        Invoke        LeaveRoom(roomid=-1)        Elapse:100 ms
[2016-06-27 11:36:12(703)]        Invoke        LogoutServer(userid=3042)        Elapse:13 ms


sss 发表于 2016-6-27 11:05:42
佰锐科技-邵光清 发表于 2016-6-27 09:56
您好,如果是参照helloanychat的demo写的,是怎么回事出现videocallcontrol呢?请提供日志,我们尽快分析 ...

日志文件看下一个回复
佰锐科技-邵光清 发表于 2016-6-27 09:56:20
sss 发表于 2016-6-27 09:12
我是按照你们的hello anychat的demo写的呀,这个demo在小米上也是OK,他的流程就跟我的一样啊

您好,如果是参照helloanychat的demo写的,是怎么回事出现videocallcontrol呢?请提供日志,我们尽快分析问题。

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

GMT+8, 2024-11-24 14:17 , Processed in 0.150458 second(s), 26 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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