运行demo出错,Agora-Android-Tutorial-1to1摄像头黑屏,求助!

集成问题

#1


是按照官方的的文档步骤操作的,在例程的基础上就加了如下两个红框里的内容。

以下是logcat日志

看最后应该是摄像头权限没开
但是在设置里权限都同意了

以下是AndroidManifest.xml
AndroidManifest

以下是debug日志
Local Date: Mon Jul 8 12:30:08 2019
Build info: Jun 13 2019 03:38:00 r

INFO (12:30: 8:749 | 0) 16006; Thread with name:Trace started
INFO (12:30: 8:750 | 1) 15984; Agora SDK ver 2.4.1 build 258, built on Jun 13 2019 03:43:20
INFO (12:30: 8:750 | 0) 15984; Agora SDK git ver:c306a33 and branch:(分离自
INFO (12:30: 8:756 | 6) 15984; CacheManager: load cache from storage elapsed 0
INFO (12:30: 8:756 | 0) 15984; CacheManager: load report cache from storage elapsed 0
INFO (12:30: 8:756 | 0) 15984; initialize plugin manager
INFO (12:30: 8:756 | 0) 15984; checking if running on ARM emulator
INFO (12:30: 8:756 | 0) 15984; cpu arch is 40
INFO (12:30: 8:756 | 0) 15984; loading encryption module: ‘/data/app/io.agora.tutorials1v1vcall-2/lib/arm/libagora-crypto.so’
INFO (12:30: 8:758 | 2) 15984; loaded lib ‘/data/app/io.agora.tutorials1v1vcall-2/lib/arm/libagora-crypto.so’
INFO (12:30: 8:758 | 0) 15984; built-in encryption is enabled
INFO (12:30: 8:758 | 0) 15984; use event engine
INFO (12:30: 8:758 | 0) 15984; Agora Rtc Engine SDK ver 2.4.1 build 258, built on Jun 13 2019 03:43:20
INFO (12:30: 8:759 | 1) 16008; AgoraServiceThread Thread started: 0xab23d190
INFO (12:30: 8:769 | 10) 16009; AgoraNetworkTestThread Thread started: 0xab23eb40
INFO (12:30: 8:775 | 6) 15984; [AudioRoute] initialize +
INFO (12:30: 8:778 | 3) 15984; [AudioRoute] Monitor stopped
INFO (12:30: 8:778 | 0) 15984; [AudioRoute] Monitor stop state, reset
INFO (12:30: 8:778 | 0) 15984; [AudioRoute] Monitor stopped
INFO (12:30: 8:778 | 0) 15984; [AudioRoute] Headset setup: Plugged = false
INFO (12:30: 8:786 | 8) 15984; [AudioRoute] BT headset setup: BTHeadsetPlugged = false null
INFO (12:30: 8:788 | 2) 15984; [AudioRoute] initial Bluetooth SCO device unconnected
INFO (12:30: 8:788 | 0) 15984; [AudioRoute] initialize -
INFO (12:30: 8:790 | 2) 15984; API call to enable video
INFO (12:30: 8:790 | 0) 16008; [rs] updateServers 199.190.44.36:8000, priority 1
INFO (12:30: 8:790 | 0) 16008; [rs] updateServers 199.190.44.37:8000, priority 1
WARN (12:30: 8:791 | 1) 16008; cannot get network cache key
INFO (12:30: 8:792 | 1) 16008; [rlbs] selected: 52.58.56.244:9700
INFO (12:30: 8:792 | 0) 16008; [rlbs] request rs list from 52.58.56.244:9700 with fake ch report_lbs_1562560208792…
WARN (12:30: 8:792 | 0) 16008; cannot get network cache key
INFO (12:30: 8:793 | 1) 15984; API call to setVideoEncoderConfiguration 640x360 15 fps -1 minFps 0 kbps min -1 kbps mode 2 degradation prefer 0
INFO (12:30: 8:793 | 0) 15984; [RtcEngine] CreateRendererView in UI Thread
INFO (12:30: 8:801 | 8) 15984; [RtcEngine] setupLocalVideo in UI Thread
INFO (12:30: 8:801 | 0) 15984; [API] userManagerPendingView: user 0 window -3863712
INFO (12:30: 8:804 | 3) 15984; API call to join channel ‘demoChannel1’ uid 0, SDK ver 2.4.1 build 258, device info ‘oppo/a51/a51/a51/22/3.10.49-perf-g2e4d78f-00712-g6213f74’
INFO (12:30: 8:804 | 0) 15984; [CommonUtility] Device info: serial = 965bdaeb, hardware = qcom, arch = aarch64, manufacturer = OPPO
INFO (12:30: 8:806 | 2) 15984; [AudioRoute] reset audio routing, default routing: Speakerphone, current routing: Default, target routing: Speakerphone, actual system routing: Speakerphone
INFO (12:30: 8:807 | 1) 15984; [AudioRoute] set audio output routing from Default to Speakerphone
INFO (12:30: 8:808 | 1) 15984; [AudioRoute] audio routing changed to Speakerphone
INFO (12:30: 8:808 | 0) 15984; [AudioRoute] Monitor start: default routing: Speakerphone, current routing: Speakerphone
INFO (12:30: 8:808 | 0) 15984; [AudioRoute] reset audio routing, default routing: Speakerphone, current routing: Speakerphone, target routing: Speakerphone, actual system routing: Speakerphone
INFO (12:30: 8:809 | 1) 15984; [AudioRoute] Monitor reset: default routing: Speakerphone, current routing: Speakerphone
INFO (12:30: 8:813 | 4) 16008; network: ‘NETWORK_UNKOWN’ -> ‘DISCONNECTED’ ipv4/v6 ‘’/’’ gw ‘’/’’ subtype 0 level 0 ssid ‘’ bssid ‘’ rssi 0 asu 0
INFO (12:30: 8:813 | 0) 16008; [rs] updateServers 199.190.44.36:8000, priority 1
INFO (12:30: 8:813 | 0) 16008; [rs] updateServers 199.190.44.37:8000, priority 1
WARN (12:30: 8:814 | 1) 16008; cannot get network cache key
WARN (12:30: 8:814 | 0) 16008; cannot get network cache key
INFO (12:30: 8:815 | 1) 16008; [rlbs] selected: 13.230.60.35:9700
INFO (12:30: 8:815 | 0) 16008; [rlbs] request rs list from 13.230.60.35:9700 with fake ch report_lbs_1562560208815…
WARN (12:30: 8:817 | 2) 16008; cannot get network cache key
WARN (12:30: 8:818 | 1) 16008; cannot get network cache key
INFO (12:30: 8:819 | 1) 16008; [MIO] mediaIO controller created
INFO (12:30: 8:819 | 0) 16008; found ‘oppo/’ for device ‘oppo/a51/a51/a51/22/3.10.49-perf-g2e4d78f-00712-g6213f74’
INFO (12:30: 8:820 | 1) 16008; [ap] selected: 47.244.4.122:8000
ERROR (12:30: 8:820 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab27ac80 @ 47.244.4.122:8000
INFO (12:30: 8:820 | 0) 16008; [ap/t] tcp disconnected with 0xab27ab30
ERROR (12:30: 8:820 | 0) 16008; Failed to connect 47.244.4.122:8000
INFO (12:30: 8:820 | 0) 16008; [ap] CdsTdsRequest, session_id: 17694A1C0505435CAED33310D0F7BDE4, agora_unique_id: BCDC680E857E4F6FA3842400F476CE32, detail: oppo/a51/a51/a51/22/3.10.49-perf-g2e4d78f-00712-g6213f74, version: 2.4.1, vendor: 8b2d11fa
INFO (12:30: 8:820 | 0) 16008; [ap] creating channel with 47.244.4.122:8000, ts 0, flag: 72
INFO (12:30: 8:821 | 1) 16008; [ap] selected: 50.17.126.121:1080
ERROR (12:30: 8:821 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab27aaf8 @ 50.17.126.121:1080
INFO (12:30: 8:821 | 0) 16008; [ap/t] tcp disconnected with 0xab27a810
ERROR (12:30: 8:821 | 0) 16008; Failed to connect 50.17.126.121:1080
INFO (12:30: 8:821 | 0) 16008; [ap] CdsTdsRequest, session_id: 17694A1C0505435CAED33310D0F7BDE4, agora_unique_id: BCDC680E857E4F6FA3842400F476CE32, detail: oppo/a51/a51/a51/22/3.10.49-perf-g2e4d78f-00712-g6213f74, version: 2.4.1, vendor: 8b2d11fa
INFO (12:30: 8:821 | 0) 16008; [ap] creating channel with 50.17.126.121:1080, ts 0, flag: 72
INFO (12:30: 8:821 | 0) 16008; [ap] selected: 52.194.158.59:25000
ERROR (12:30: 8:821 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab27aaf8 @ 52.194.158.59:25000
INFO (12:30: 8:821 | 0) 16008; [ap/t] tcp disconnected with 0xab27a810
ERROR (12:30: 8:821 | 0) 16008; Failed to connect 52.194.158.59:25000
INFO (12:30: 8:821 | 0) 16008; [ap] CdsTdsRequest, session_id: 17694A1C0505435CAED33310D0F7BDE4, agora_unique_id: BCDC680E857E4F6FA3842400F476CE32, detail: oppo/a51/a51/a51/22/3.10.49-perf-g2e4d78f-00712-g6213f74, version: 2.4.1, vendor: 8b2d11fa
INFO (12:30: 8:822 | 1) 16008; [ap] creating channel with 52.194.158.59:25000, ts 0, flag: 72
INFO (12:30: 8:822 | 0) 16008; [rp] {“che.video.local.camera_index”:1}
INFO (12:30: 8:822 | 0) 16008; [rp] {“rtc.video.enabled”:true}
INFO (12:30: 8:822 | 0) 16008; API call to enable video
INFO (12:30: 8:822 | 0) 16008; [API] userManagerBindUserView: user 0 mode 2 window -3863712
INFO (12:30: 8:822 | 0) 16008; Create participant 0
INFO (12:30: 8:822 | 0) 16008; [rp] {“che.android_simulator”:false}
INFO (12:30: 8:822 | 0) 16008; [rp] {“che.android_version”:22}
INFO (12:30: 8:822 | 0) 16008; [rp] {“che.audio.output.routing”:3}
INFO (12:30: 8:823 | 1) 16008; [rp] {“che.audio.output.routing”:3}
INFO (12:30: 8:823 | 0) 16008; doStopLastmileProbeTest
INFO (12:30: 8:824 | 1) 16008; CALL BEGIN: appid:'8b
*********************47’ cname:‘demoChannel1’ info:‘Extra Optional Data’ sid:‘4C3FE69612574A098837E5F4127F6D9D’
INFO (12:30: 8:824 | 0) 16008; addRef of media engine, ref=1
INFO (12:30: 8:824 | 0) 16008; [che] create chat engine, ctx:0x6d7adb54
ERROR (12:30: 8:825 | 1) 16008; VoiceEngine::SetAndroidObjects engine context 0
ERROR (12:30: 8:825 | 0) 16008; VoiceEngine::SetAndroidObjects engine context 161
INFO (12:30: 8:825 | 0) 16008; use android JNI device recording
INFO (12:30: 8:826 | 1) 16008; [MYDEBUG] large group call false
INFO (12:30: 8:826 | 0) 16008; ChatEngineParameterHelper::applyMediaEngineMode:
INFO (12:30: 8:826 | 0) 16008; applyMediaEngineMode(): Hardware encoding false Hardware decoding false
INFO (12:30: 8:826 | 0) 16008; engine git commit version:68d2422 and branch:(分离自
INFO (12:30: 8:826 | 0) 16012; Thread with name:AudioAsyncTask started
INFO (12:30: 8:827 | 1) 16008; set audiolayer 0
INFO (12:30: 8:827 | 0) 16008; output: kPlatformDefaultAudio
INFO (12:30: 8:827 | 0) 16008; audio jitterbuffer new smooth
INFO (12:30: 8:828 | 1) 16008; OS info: Android
INFO (12:30: 8:834 | 6) 15984; [AudioRoute] Bluetooth SCO device disconnected
INFO (12:30: 8:839 | 5) 16008; [JNI] InitSampleRate Recording 16000
INFO (12:30: 8:839 | 0) 16008; [JNI] InitSampleRate playout 16000 , res = 48000
INFO (12:30: 8:840 | 1) 16013; Thread with name:jni_audio_capture_thread started
INFO (12:30: 8:840 | 0) 16014; Thread with name:jni_audio_render_thread started
INFO (12:30: 8:841 | 1) 16008; [JNI] playback device is set to 0
INFO (12:30: 8:841 | 0) 16008; Set stereo playback available = 0
INFO (12:30: 8:841 | 0) 16008; StereoPlayoutIsAvailable(), output: available=0
INFO (12:30: 8:841 | 0) 16008; StereoRecordingIsAvailable(), output: available=0
INFO (12:30: 8:841 | 0) 16008; RegisterReceiveCodec 13.
INFO (12:30: 8:841 | 0) 16008; RegisterReceiveCodec 98.
INFO (12:30: 8:841 | 0) 16008; RegisterReceiveCodec 99.
INFO (12:30: 8:841 | 0) 16008; RegisterReceiveCodec 100.
INFO (12:30: 8:841 | 0) 16008; RegisterReceiveCodec 127.
INFO (12:30: 8:841 | 0) 16015; Thread with name:EngineMonitorThread started
INFO (12:30: 8:841 | 0) 16008; setMuteStatus, muted: Off
INFO (12:30: 8:841 | 0) 16008; setMuteOutput, muted: false
INFO (12:30: 8:841 | 0) 16008; Audio Engine Init success
INFO (12:30: 8:860 | 19) 16008; [MediaCodecVideoEncoder] Model: A51
INFO (12:30: 8:860 | 0) 16008; [MediaCodecVideoEncoder] hardware: qcom
INFO (12:30: 8:961 | 101) 16008; [MediaCodecVideoEncoder] Found candidate encoder OMX.qcom.video.encoder.avc
INFO (12:30: 8:962 | 1) 16008; [MediaCodecVideoEncoder] Found target encoder for mime video/avc : OMX.qcom.video.encoder.avc. Color: 0x15
INFO (12:30: 8:962 | 0) 16008; MediaCodecVideoEncoder H.264 HW Encoder support yuv.
INFO (12:30: 8:962 | 0) 16008; [MediaCodecVideoEncoder] Model: A51
INFO (12:30: 8:962 | 0) 16008; [MediaCodecVideoEncoder] hardware: qcom
INFO (12:30: 8:962 | 0) 16008; [MediaCodecVideoEncoder] Found candidate encoder OMX.qcom.video.encoder.avc
INFO (12:30: 8:963 | 1) 16008; [MediaCodecVideoEncoder] Found target encoder for mime video/avc : OMX.qcom.video.encoder.avc. Color: 0x7f000789
INFO (12:30: 8:964 | 1) 16008; MediaCodecVideoEncoder H.264 HW Encoder support texture.
INFO (12:30: 8:964 | 0) 16008; [MediaCodecVideoEncoder] Qualcomm HW encoder true
INFO (12:30: 8:964 | 0) 16008; MediaCodecVideoEncoder is Qualcomm HW Encoder: true
INFO (12:30: 8:974 | 10) 16008; [MediaCodecVideoDecoder] Trying to find HW decoder for mime video/avc
INFO (12:30: 8:974 | 0) 16008; [MediaCodecVideoDecoder] Found candidate decoder OMX.qcom.video.decoder.avc
INFO (12:30: 8:976 | 2) 16008; Available number of cores:4
INFO (12:30: 8:976 | 0) 16008; PipelineManager::SetDest engine = 0xab439fb8
INFO (12:30: 8:976 | 0) 16008; CreateVideoSendTrack
INFO (12:30: 8:977 | 1) 16020; Thread with name:VideoAsyncTask started
INFO (12:30: 8:977 | 0) 16008; init: feature prerotation disabled
INFO (12:30: 9: 43 | 0) 16008; Agora Engine video codec set to custom mode role mode 0
INFO (12:30: 9: 43 | 0) 16008; Agora Engine video codec index 1
INFO (12:30: 9: 44 | 1) 16008; Agora Engine video stream type = 0
INFO (12:30: 9: 46 | 2) 16022; Thread with name:VideoEncodeThread started
INFO (12:30: 9: 46 | 0) 16008; last unique frame idx: -1 - -1
INFO (12:30: 9: 46 | 0) 16008; EncoderWrapper::Create hardware_ = 0, hardware_low_ = 0
INFO (12:30: 9: 46 | 0) 16008; hwenc=0,hwenc_low=0,enlarge_big = 0,enlarge_small=0
INFO (12:30: 9: 46 | 0) 16008; low bit rate limit 1610612736
INFO (12:30: 9: 46 | 0) 16008; dont need to increase unique frame idx
INFO (12:30: 9: 46 | 0) 16008; the init unique frame idx: -1 - -1
INFO (12:30: 9: 46 | 0) 16023; Thread with name:VideoProcessThread started
INFO (12:30: 9: 46 | 0) 16008; setCodec: index=1 width=640 height=360 framerate=15
INFO (12:30: 9: 46 | 0) 16008; setCodec: Intra Request = 0
INFO (12:30: 9: 56 | 10) 16024; Thread with name:VideoEncodeThread started
INFO (12:30: 9: 56 | 0) 16008; EnableLowBitRateStream: dual streams enabled 1
INFO (12:30: 9: 56 | 0) 16008; h264WebInteropEnable: enable 0
INFO (12:30: 9: 57 | 1) 16008; setCaptureDevice: index=1
INFO (12:30: 9: 62 | 5) 16008; setMaxVideoBitrate: max bitrate=0
INFO (12:30: 9: 63 | 1) 16008; Setting video fec method 1, real using 1
INFO (12:30: 9: 63 | 0) 16008; SetBandwidthAgressiveLevel to 2.
INFO (12:30: 9: 63 | 0) 16008; dynamic sending rate control enabled 0.

INFO (12:30: 9: 63 | 0) 16008; videoEngine created and initialize here
INFO (12:30: 9: 63 | 0) 16008; CreateVideoSendTrack
INFO (12:30: 9: 63 | 0) 16008; [MIO] updateCapturer: (0x0), type:(1)
INFO (12:30: 9: 63 | 0) 16008; CreateAgoraDefaultCapture: type=0
INFO (12:30: 9: 63 | 0) 16008; VideoSendTrackImpl::UpdateCapturer capturer=0xab441220
INFO (12:30: 9: 63 | 0) 16008; CreateVideoCapturer: interface=0xab441220
INFO (12:30: 9: 63 | 0) 16008; [MIO] updateLocalRender: (0x0), type:(1)
INFO (12:30: 9: 63 | 0) 16008; CreateAgoraDefaultRender
INFO (12:30: 9: 63 | 0) 16008; VideoSendTrackImpl::UpdateRenderer, renderer=0xab451e00
INFO (12:30: 9: 63 | 0) 16008; CreateVideoRenderer: interface=0xab451e00
INFO (12:30: 9: 63 | 0) 16008; [MIO] video send track prepared !!
INFO (12:30: 9: 63 | 0) 16008; [che] applyVideoProfile: 640x360 15 fps -1 minFps 400 kbps, min -1 kbps orientationMode 2 degradationPrefer 0
INFO (12:30: 9: 75 | 12) 16008; validateVideoParameters: validate video parameters resolution 640x360, fps 15, rate 400000
INFO (12:30: 9: 75 | 0) 16008; setMaxVideoBitrate: max bitrate=400000
INFO (12:30: 9: 75 | 0) 16008; setCodecRates: set frame rate to 15
INFO (12:30: 9: 75 | 0) 16008; setCodec: index=1 width=640 height=360 framerate=15
INFO (12:30: 9: 75 | 0) 16008; setCodec: Intra Request = 0
INFO (12:30: 9: 86 | 11) 16025; Thread with name:VideoEncodeThread started
INFO (12:30: 9: 86 | 0) 16008; last unique frame idx: -1 - -1
INFO (12:30: 9: 86 | 0) 16008; EncoderWrapper::Create hardware_ = 0, hardware_low_ = 0
INFO (12:30: 9: 86 | 0) 16008; hwenc=0,hwenc_low=0,enlarge_big = 0,enlarge_small=0
INFO (12:30: 9: 86 | 0) 16008; low bit rate limit 0
INFO (12:30: 9: 86 | 0) 16008; dont need to increase unique frame idx
INFO (12:30: 9: 86 | 0) 16008; the init unique frame idx: -1 - -1
INFO (12:30: 9: 86 | 0) 16008; SetTargetWidthHeight width:640, height:360
INFO (12:30: 9: 86 | 0) 16008; setCodecResolution: set to 360 x 640
INFO (12:30: 9: 86 | 0) 16008; setCodec: index=1 width=360 height=640 framerate=15
INFO (12:30: 9: 86 | 0) 16008; setCodec: Intra Request = 0
WARN (12:30: 9: 86 | 0) 16008; setCodec: codec resolution width (360) < height (640)
INFO (12:30: 9: 96 | 10) 16026; Thread with name:VideoEncodeThread started
INFO (12:30: 9: 96 | 0) 16008; last unique frame idx: -1 - -1
INFO (12:30: 9: 97 | 1) 16008; EncoderWrapper::Create hardware_ = 0, hardware_low_ = 0
INFO (12:30: 9: 97 | 0) 16008; hwenc=0,hwenc_low=0,enlarge_big = 0,enlarge_small=0
INFO (12:30: 9: 97 | 0) 16008; low bit rate limit 0
INFO (12:30: 9: 97 | 0) 16008; dont need to increase unique frame idx
INFO (12:30: 9: 97 | 0) 16008; the init unique frame idx: -1 - -1
INFO (12:30: 9: 97 | 0) 16008; SetTargetWidthHeight width:640, height:360
INFO (12:30: 9: 97 | 0) 16008; Set broadcast min br to -1.
INFO (12:30: 9: 97 | 0) 16008; [che] chat engine initialized
INFO (12:30: 9: 97 | 0) 16008; [time] process EngineInitialize takes 273
INFO (12:30: 9: 98 | 1) 16008; [tactics] config json version:20150101-0000 duallinkd:true poor:u
INFO (12:30: 9: 98 | 0) 16008; [tactics] parse config for beckon error for tactics size:18
WARN (12:30: 9: 98 | 0) 16008; cannot get network cache key
WARN (12:30: 9: 99 | 1) 16008; cannot get network cache key
INFO (12:30: 9: 99 | 0) 16008; [vocs] vocs initialized
INFO (12:30: 9:100 | 1) 16008; [ap] selected: 47.244.4.122:8000
ERROR (12:30: 9:100 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab4d7d10 @ 47.244.4.122:8000
INFO (12:30: 9:100 | 0) 16008; [ap/t] tcp disconnected with 0xab4d6b68
ERROR (12:30: 9:100 | 0) 16008; Failed to connect 47.244.4.122:8000
INFO (12:30: 9:100 | 0) 16008; [ap] creating channel with 47.244.4.122:8000, ts 7665594, flag: 2
INFO (12:30: 9:100 | 0) 16008; [ap] selected: 50.17.126.121:1080
ERROR (12:30: 9:100 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab4d7ef8 @ 50.17.126.121:1080
INFO (12:30: 9:100 | 0) 16008; [ap/t] tcp disconnected with 0xab4d6d08
ERROR (12:30: 9:100 | 0) 16008; Failed to connect 50.17.126.121:1080
INFO (12:30: 9:100 | 0) 16008; [ap] creating channel with 50.17.126.121:1080, ts 7665594, flag: 2
INFO (12:30: 9:101 | 1) 16008; [ap] selected: 52.194.158.59:25000
ERROR (12:30: 9:101 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab4d7d88 @ 52.194.158.59:25000
INFO (12:30: 9:101 | 0) 16008; [ap/t] tcp disconnected with 0xab4d6bb8
ERROR (12:30: 9:101 | 0) 16008; Failed to connect 52.194.158.59:25000
INFO (12:30: 9:101 | 0) 16008; [ap] creating channel with 52.194.158.59:25000, ts 7665594, flag: 2
WARN (12:30: 9:103 | 2) 16008; [cm] session ‘1FFA2C40DA784879B07C289B5F17BC43’ was not joined successfully
INFO (12:30: 9:103 | 0) 16008; CacheManager: save cache to storage elapsed 1
INFO (12:30: 9:103 | 0) 16008; [cm] emit join channel signal, size=4
INFO (12:30: 9:103 | 0) 16008; [cm] connection state changed from 1 to 2
INFO (12:30: 9:104 | 1) 16008; [vocs] lookup channel…
INFO (12:30: 9:104 | 0) 16008; [vocs] selected: 106.14.12.130:8000
ERROR (12:30: 9:104 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab4d8888 @ 106.14.12.130:8000
INFO (12:30: 9:104 | 0) 16008; [vocs/t] tcp create channel disconnected with 0xab4d8738
ERROR (12:30: 9:104 | 0) 16008; Failed to connect 106.14.12.130:8000
INFO (12:30: 9:105 | 1) 16008; [vocs] report bitrate: a/v/t: 50/400/450
INFO (12:30: 9:105 | 0) 16008; [vocs] creating channel with 106.14.12.130:8000, ts 1562560209105…
INFO (12:30: 9:791 | 686) 16008; [vocs] selected: 50.17.126.121:1080
ERROR (12:30: 9:792 | 1) 16008; connection error 20 on socket 4294967295 @ 0xab247d50 @ 50.17.126.121:1080
INFO (12:30: 9:792 | 0) 16008; [vocs/t] tcp create channel disconnected with 0xab247fa0
ERROR (12:30: 9:792 | 0) 16008; Failed to connect 50.17.126.121:1080
INFO (12:30: 9:792 | 0) 16008; [vocs] report bitrate: a/v/t: 50/400/450
INFO (12:30: 9:792 | 0) 16008; [vocs] creating channel with 50.17.126.121:1080, ts 1562560209792…
INFO (12:30:10:794 | 2) 16008; [vocs] selected: 54.223.118.211:25000
ERROR (12:30:10:795 | 1) 16008; connection error 20 on socket 4294967295 @ 0xab249830 @ 54.223.118.211:25000
INFO (12:30:10:795 | 0) 16008; [vocs/t] tcp create channel disconnected with 0xab274408
ERROR (12:30:10:795 | 0) 16008; Failed to connect 54.223.118.211:25000
INFO (12:30:10:795 | 0) 16008; [vocs] report bitrate: a/v/t: 50/400/450
INFO (12:30:10:795 | 0) 16008; [vocs] creating channel with 54.223.118.211:25000, ts 1562560210795…
INFO (12:30:11:795 | 0) 16008; [vocs] waiting for response timeout, size 2
INFO (12:30:11:796 | 1) 16008; [vocs] selected: 106.14.12.130:1080
ERROR (12:30:11:798 | 2) 16008; connection error 20 on socket 4294967295 @ 0xab274408 @ 106.14.12.130:1080
INFO (12:30:11:798 | 0) 16008; [vocs/t] tcp create channel disconnected with 0xab4d8050
ERROR (12:30:11:798 | 0) 16008; Failed to connect 106.14.12.130:1080
INFO (12:30:11:798 | 0) 16008; [vocs] report bitrate: a/v/t: 50/400/450
INFO (12:30:11:798 | 0) 16008; [vocs] creating channel with 106.14.12.130:1080, ts 1562560211798…
INFO (12:30:11:798 | 0) 16008; [ap] 47.244.4.122:8000 is reported failure, and will be disabled for 4000 ms
INFO (12:30:11:798 | 0) 16008; [ap] 50.17.126.121:1080 is reported failure, and will be disabled for 4000 ms
INFO (12:30:11:798 | 0) 16008; [ap] 52.194.158.59:25000 is reported failure, and will be disabled for 4000 ms
INFO (12:30:11:798 | 0) 16008; [ap] waiting for response timeout, size 3
INFO (12:30:11:798 | 0) 16008; [ap] selected: 47.244.4.122:1080
ERROR (12:30:11:798 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab274408 @ 47.244.4.122:1080
INFO (12:30:11:798 | 0) 16008; [ap/t] tcp disconnected with 0xab26bce0
ERROR (12:30:11:798 | 0) 16008; Failed to connect 47.244.4.122:1080
INFO (12:30:11:798 | 0) 16008; [ap] CdsTdsRequest, session_id: 17694A1C0505435CAED33310D0F7BDE4, agora_unique_id: BCDC680E857E4F6FA3842400F476CE32, detail: oppo/a51/a51/a51/22/3.10.49-perf-g2e4d78f-00712-g6213f74, version: 2.4.1, vendor: 8b2d11fa
INFO (12:30:16:804 | 0) 16008; [ap] creating channel with 52.194.158.59:25000, ts 0, flag: 72
INFO (12:30:16:804 | 0) 16008; [ap] 47.244.4.122:25000 is reported failure, and will be disabled for 4000 ms
INFO (12:30:16:804 | 0) 16008; [ap] 50.17.126.121:8000 is reported failure, and will be disabled for 4000 ms
INFO (12:30:16:804 | 0) 16008; [ap] 52.194.158.59:1080 is reported failure, and will be disabled for 4000 ms
INFO (12:30:16:804 | 0) 16008; [ap] waiting for response timeout, size 3
INFO (12:30:16:804 | 0) 16008; [ap] selected: 47.244.4.122:8000
ERROR (12:30:16:805 | 1) 16008; connection error 20 on socket 4294967295 @ 0xab4e8198 @ 47.244.4.122:8000
INFO (12:30:16:805 | 0) 16008; [ap/t] tcp disconnected with 0xab4e6c38
ERROR (12:30:16:805 | 0) 16008; Failed to connect 47.244.4.122:8000
INFO (12:30:16:805 | 0) 16008; [ap] creating channel with 47.244.4.122:8000, ts 7665594, flag: 2
INFO (12:30:16:805 | 0) 16008; [ap] selected: 50.17.126.121:1080
ERROR (12:30:16:805 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab4e8198 @ 50.17.126.121:1080
INFO (12:30:16:805 | 0) 16008; [ap/t] tcp disconnected with 0xab4e6c38
ERROR (12:30:16:805 | 0) 16008; Failed to connect 50.17.126.121:1080
INFO (12:30:16:806 | 1) 16008; [ap] creating channel with 50.17.126.121:1080, ts 7665594, flag: 2
INFO (12:30:16:806 | 0) 16008; [ap] selected: 52.194.158.59:25000
ERROR (12:30:16:806 | 0) 16008; connection error 20 on socket 4294967295 @ 0xab4e8198 @ 52.194.158.59:25000
INFO (12:30:16:806 | 0) 16008; [ap/t] tcp disconnected with 0xab4e6c38
ERROR (12:30:16:806 | 0) 16008; Failed to connect 52.194.158.59:25000
INFO (12:30:16:806 | 0) 16008; [ap] creating channel with 52.194.158.59:25000, ts 7665594, flag: 2
INFO (12:30:16:806 | 0) 16008; [vocs] waiting for response timeout, size 1
INFO (12:30:16:807 | 1) 16008; [vocs] selected: 54.223.118.211:1080
ERROR (12:30:16:808 | 1) 16008; connection error 20 on socket 4294967295 @ 0xab4e8198 @ 54.223.118.211:1080
INFO (12:30:16:808 | 0) 16008; [vocs/t] tcp create channel disconnected with 0xab4e6c38
ERROR (12:30:16:808 | 0) 16008; Failed to connect 54.223.118.211:1080
INFO (12:30:16:808 | 0) 16008; [vocs] report bitrate: a/v/t: 50/400/450
INFO (12:30:16:808 | 0) 16008; [vocs] creating channel with 54.223.118.211:1080, ts 1562560216808…
INFO (12:30:17:407 | 0) 16008; [rp] {“che.video.local.camera_index”:1}
INFO (12:30:17:407 | 0) 16008; setCaptureDevice: index=1
INFO (12:30:17:798 | 391) 16008; [vocs] waiting for response timeout, size 1
INFO (12:30:17:799 | 1) 16008; [vocs] selected: 106.14.12.130:8000
ERROR (12:30:17:800 | 1) 16008; connection error 20 on socket 4294967295 @ 0xab4e8198 @ 106.14.12.130:8000
INFO (12:30:17:800 | 0) 16008; [vocs/t] tcp create channel disconnected with 0xab40a810
ERROR (12:30:17:800 | 0) 16008; Failed to connect 106.14.12.130:8000
INFO (12:30:17:800 | 0) 16008; [vocs] report bitrate: a/v/t: 50/400/450
INFO (12:30:17:800 | 0) 16008; [vocs] creating channel with 106.14.12.130:8000, ts 1562560217800…
INFO (12:30:18:793 | 0) 16008; [vocs] selected: 50.17.126.121:1080
ERROR (12:30:18:794 | 1) 16008; connection error 20 on socket 4294967295 @ 0xab4e8198 @ 50.17.126.121:1080
INFO (12:30:18:794 | 0) 16008; [vocs/t] tcp create channel disconnected with 0xab4ee628
ERROR (12:30:18:794 | 0) 16008; Failed to connect 50.17.126.121:1080
INFO (12:30:18:794 | 0) 16008; [vocs] report bitrate: a/v/t: 50/400/450
INFO (12:30:18:794 | 0) 16008; [vocs] creating channel with 50.17.126.121:1080, ts 1562560218794…
INFO (12:30:19:211 | 0) 15984; API call to leave channel
INFO (12:30:19:212 | 1) 15984; [AudioRoute] Monitor stop state, reset
INFO (12:30:19:212 | 0) 15984; [AudioRoute] Monitor stopped
INFO (12:30:19:212 | 0) 15984; Detach external video source from pipeline
WARN (12:30:19:213 | 1) 16008; leaving channel that was not joined yet
INFO (12:30:19:213 | 0) 15984; android destroy
INFO (12:30:19:213 | 0) 16008; [cm] emit leave channel signal
INFO (12:30:19:536 | 323) 16008; stopLocalRender
INFO (12:30:19:536 | 0) 16008; stopLocalRender success
WARN (12:30:19:536 | 0) 16008; stopCapture: VideoEngine haven’t startCapture
INFO (12:30:19:536 | 0) 16008; stopRemoteRender
INFO (12:30:19:536 | 0) 16008; [che] stopCall begins
INFO (12:30:19:537 | 1) 16008; [che] stop call returns -1, elapsed 1
INFO (12:30:19:537 | 0) 16008; [time] process EngineStopCall takes 1
INFO (12:30:19:537 | 0) 16008; [rs] **report stats: seq: 49, report list size 41, tx/rx: 16377/0, cache size: 4
INFO (12:30:19:537 | 0) 16008; [rs] report server1: 199.190.44.37:8000
INFO (12:30:19:537 | 0) 16008; [rs] report server2: 199.190.44.36:8000
INFO (12:30:19:537 | 0) 16008; [cm] connection state changed from 2 to 1
INFO (12:30:19:538 | 1) 16008; **CALL STATS: duration 10s, tx 0 bytes, rx 0 bytes, total 0 bytes
INFO (12:30:19:538 | 0) 16008; CacheManager: save cache to storage elapsed 0
INFO (12:30:19:539 | 1) 16008; delRef of media engine, ref=0
INFO (12:30:19:539 | 0) 16008; [che] chat engine destroying
INFO (12:30:19:539 | 0) 16008; stopLocalRender
INFO (12:30:19:539 | 0) 16008; stopLocalRender success
WARN (12:30:19:539 | 0) 16008; stopCapture: VideoEngine haven’t startCapture
INFO (12:30:19:539 | 0) 16008; stopRemoteRender
INFO (12:30:19:539 | 0) 16008; [che] stopCall begins
INFO (12:30:19:539 | 0) 16008; [che] stop call returns -1, elapsed 0
INFO (12:30:19:539 | 0) 16008; stopLocalRender
INFO (12:30:19:539 | 0) 16008; stopLocalRender success
INFO (12:30:19:539 | 0) 16008; stopRemoteRender
WARN (12:30:19:539 | 0) 16008; stopCapture: VideoEngine haven’t startCapture
INFO (12:30:19:550 | 11) 16008; PipelineManager::SetDest engine = 0x0
WARN (12:30:19:550 | 0) 16008; terminate: VideoEngine haven’t init
INFO (12:30:19:550 | 0) 16008; [DEBUGG] ViERenderManager Destructor, engine_id: 0
INFO (12:30:19:551 | 1) 16008; AgoraCameraCapture::Dispose
INFO (12:30:19:551 | 0) 16008; VideoSendTrackImpl::UpdateCapturer capturer=0x0
INFO (12:30:19:551 | 0) 16008; CreateVideoCapturer: interface=0x0
INFO (12:30:19:551 | 0) 16008; VideoSendTrackImpl::UpdateRenderer, renderer=0x0
INFO (12:30:19:551 | 0) 16008; CreateVideoRenderer: interface=0x0
ERROR (12:30:19:554 | 3) 16008; VoiceEngine::SetAndroidObjects engine context 0
ERROR (12:30:19:554 | 0) 16008; VoiceEngine::SetAndroidObjects engine context 170
INFO (12:30:19:555 | 1) 16008; SetAndroidObjects: JVM is NULL, assuming deinit
INFO (12:30:19:559 | 4) 16008; [che] chat engine destroyed
INFO (12:30:19:560 | 1) 16008; ***CALL END
INFO (12:30:19:560 | 0) 16008; onAudioStatusChanged enable audio
INFO (12:30:19:562 | 2) 16008; [MIO] media io controller destroyed
INFO (12:30:19:562 | 0) 15984; async task worker thread exited gracefully
INFO (12:30:19:562 | 0) 15984; [API] userManagerClearUserViews
INFO (12:30:19:562 | 0) 15984; Delete participant 0


#2

用的是真机测试的吗?
在哪里下载的SDK呀?是不是使用了语音通话SDK?试下官网最新版demo:https://download.agora.io/sdk/release/Agora_Native_SDK_for_Android_v2_4_1_FULL.zip?_ga=2.148215476.2030149519.1562552737-403021650.1561949473
官网集成指南:https://docs.agora.io/cn/Video/android_video?platform=Android


#3

Android Studio是从谷歌官网上下载的最新版本,今天又下载了3.0版本试了试,用的是真机,OPPO A51 Android5.1.1 用的是视频一对一例子,SDK下载的是full-sdk
指南看过了,但官网上的和GitHub里的不太一样,两个版本都试了,都不行


#4

直接安装该apk,看下可以吗?https://download.agora.io/sdk/release/AgoraLive_for_Android_v2.4.0.921.apk?_ga=2.107395969.2030149519.1562552737-403021650.1561949473


#5

这个可以用,但我想把实时视频加到我的APP上,所以下载了demo试一试,看看效果怎么样。


#6

你重新跑下官网demo,然后收集SDK log,提个工单吧。声网会有技术工程师帮你排查的。


#7

:joy_cat:刚又跑了一遍,这边都编辑好了,就等log了,结果就运行成功了,一点都没动。奇了怪了,昨天到刚才咋试也不行。那我还提交不:thinking:


#8

:joy:运行成功就好!不用提啦


#9


:stuck_out_tongue_winking_eye:完成了