GithubHelp home page GithubHelp logo

hackwebrtc / webrtc Goto Github PK

View Code? Open in Web Editor NEW
791.0 44.0 287.0 315.94 MB

HackWebRTC Book source repo, please check those updated hack_webrtc_xxxxx branches.

Home Page: https://blog.piasy.com/webrtc/index.html

License: BSD 3-Clause "New" or "Revised" License

Java 3.41% Shell 0.11% CMake 0.02% Python 1.94% C++ 80.50% C 10.69% Assembly 0.05% Objective-C 1.07% MATLAB 0.10% Objective-C++ 2.02% CSS 0.01% JavaScript 0.08% Roff 0.01% HTML 0.02% Batchfile 0.01%
webrtc webrtc-demos webrtc-android

webrtc's People

Contributors

alebzk avatar amithilbuch avatar andresusanopinto avatar benjwright avatar danilchapovalov avatar ehlemur-zz avatar fancycode avatar henbos avatar henrikand avatar hnoo112233 avatar jonex avatar kthelgason avatar minyuel avatar mirkobonadei avatar mstyura avatar oprypin avatar orphis avatar perkj avatar philipel-webrtc avatar pkasting avatar pthatcherg avatar rasmusbrandt avatar rodbro avatar sergeyulanov avatar steveanton avatar tfarina avatar titov-artem avatar tkchin avatar yingwang avatar zhihuang0718 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webrtc's Issues

缺少protoc文件

大神,我在Mac系统下,clone您的项目后,修改gradle.properties文件中的配置,就差“protoc”这个配置不知道怎么生成,我在Mac下使用“ninja -C out/Debug”命令编译webrtc源码报错
“ninja: error: '../../third_party/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a', needed by 'obj/modules/audio_coding/libana_config_proto.a', missing and no known rule to make it”
请问这个文件必须要在Linux下编译好后才能拿到吗?

libwebrtc.a总是无法链接到ffmpeg对应的方法

添加了本地录制模块,生成的静态库在demo中运行总是报错显示:
error build: Undefined symbol: _av_strerror
error build: Undefined symbol: _avformat_alloc_output_context2
error build: Undefined symbol: _avformat_free_context
error build: Undefined symbol: _avio_open
大佬,想问问是什么原因,怎么能够链接到ffmpeg,我已经在sdk文件夹下添加了libs文件夹,而且添加了recording文件夹

mac docker启动后用mac webrtc连接报错Error Domain=NSURLErrorDomain Code=-1200"An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=https:// 127.0.0.1:8080/join/21?debug=loopback, NSLocalizedRecovery Suggestion=Would you like to connect to the server anyway?,_kCFStreamErrorDomainKey=3, NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <EEC5711C-E535-4002-A44F-B93E37A17044>.<<4> NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <EEC5711C-E535-4002-A44F-

docker 命令
ocker run --rm
-p 8080:8080 -p 8089:8089 -p 2033:3033 -p 3478:3478 -p 3478:3478/udp
-p 59900-61000:59900-61000/udp
-e PUBLIC_IP=127.0.0.1
-it piasy/apprtc-server

具体错误

(webrtc_voice_engine.cc:362): WebRtcVoiceEngine::WebRtcVoiceEngine
(webrtc_video_engine.cc:721): WebRtcVideoEngine::WebRtcVideoEngine()
(webrtc_voice_engine.cc:384): WebRtcVoiceEngine::Init
(audio_device_impl.cc:67): Create
(audio_device_impl.cc:75): CreateForTest
(audio_device_buffer.cc:66): AudioDeviceBuffer::ctor
(audio_device_impl.cc:120): AudioDeviceModuleImpl
(audio_device_impl.cc:135): CheckPlatform
(audio_device_impl.cc:152): current platform is Mac
(audio_device_impl.cc:168): CreatePlatformSpecificObjects
(audio_device_impl.cc:907): PlatformAudioLayer
(audio_mixer_manager_mac.cc:49): AudioMixerManagerMac created
(audio_device_mac.cc:134): AudioDeviceMac created
(audio_device_impl.cc:252): Mac OS X Audio APIs will be utilized.
(audio_device_impl.cc:272): AttachAudioBuffer
(audio_device_buffer.cc:186): SetRecordingSampleRate(48000)
(audio_device_buffer.cc:192): SetPlayoutSampleRate(48000)
(audio_device_buffer.cc:206): SetRecordingChannels(1)
(audio_device_buffer.cc:212): SetPlayoutChannels(2)
(audio_device_impl.cc:292): Init
(audio_device_impl.cc:636): SetPlayoutDevice(0)
(audio_device_impl.cc:325): InitSpeaker
(audio_device_mac.cc:1787): Output device: Apple Inc. 外置耳机
(audio_device_impl.cc:540): StereoPlayoutIsAvailable
(audio_mixer_manager_mac.cc:199): SpeakerIsInitialized
(audio_device_impl.cc:547): output: 1
(audio_device_impl.cc:552): SetStereoPlayout(1)
(audio_device_buffer.cc:212): SetPlayoutChannels(2)
(audio_device_impl.cc:698): SetRecordingDevice(0)
(audio_device_impl.cc:331): InitMicrophone
(audio_device_mac.cc:1785): Input device: Apple Inc. 外置麦克风
(audio_device_impl.cc:494): StereoRecordingIsAvailable
(audio_mixer_manager_mac.cc:205): MicrophoneIsInitialized
(audio_device_impl.cc:501): output: 0
(audio_device_impl.cc:506): SetStereoRecording(0)
(audio_device_buffer.cc:206): SetRecordingChannels(1)
(audio_device_impl.cc:811): RegisterAudioCallback
(audio_device_buffer.cc:86): RegisterAudioCallback
(webrtc_voice_engine.cc:491): WebRtcVoiceEngine::ApplyOptions: AudioOptions {aec: 1, agc: 1, ns: 1, hf: 1, swap: 0, audio_jitter_buffer_max_packets: 200, audio_jitter_buffer_fast_accelerate: 0, audio_jitter_buffer_min_delay_ms: 0, }
(audio_device_impl.cc:827): BuiltInAECIsAvailable
(audio_device_generic.cc:18): virtual bool webrtc::AudioDeviceGeneric::BuiltInAECIsAvailable() const: Not supported on this platform
(audio_device_impl.cc:830): output: 0
(audio_device_impl.cc:843): BuiltInAGCIsAvailable
(audio_device_generic.cc:28): virtual bool webrtc::AudioDeviceGeneric::BuiltInAGCIsAvailable() const: Not supported on this platform
(audio_device_impl.cc:846): output: 0
(audio_device_impl.cc:859): BuiltInNSIsAvailable
(audio_device_generic.cc:38): virtual bool webrtc::AudioDeviceGeneric::BuiltInNSIsAvailable() const: Not supported on this platform
(audio_device_impl.cc:862): output: 0
(audio_processing_impl.cc:911): AudioProcessing::ApplyConfig: AudioProcessing::Config{ pipeline: { maximum_internal_processing_rate: 48000, multi_channel_render: 0, multi_channel_capture: 0 }, pre_amplifier: { enabled: 0, fixed_gain_factor: 1 },capture_level_adjustment: { enabled: 0, pre_gain_factor: 1, post_gain_factor: 1, analog_mic_gain_emulation: { enabled: 0, initial_level: 255 }}, high_pass_filter: { enabled: 1 }, echo_canceller: { enabled: 1, mobile_mode: 0, enforce_high_pass_filtering: 1 }, noise_suppression: { enabled: 1, level: High }, transient_suppression: { enabled: 0 }, gain_controller1: { enabled: 1, mode: AdaptiveAnalog, target_level_dbfs: 3, compression_gain_db: 9, enable_limiter: 1, analog_gain_controller { enabled: 1, startup_min_volume: 0, clipped_level_min: 70, enable_digital_adaptive: 1, clipped_level_step: 15, clipped_ratio_threshold: 0.1, clipped_wait_frames: 300, clipping_predictor:  { enabled: 0, mode: 0, window_length: 5, reference_window_length: 5, reference_window_delay: 5, clipping_threshold: -1, crest_factor_margin: 3, use_predicted_step: 1 }}}, gain_controller2: { enabled: 0, fixed_digital: { gain_db: 0 }, adaptive_digital: { enabled: 0, headroom_db: 6, max_gain_db: 30, initial_gain_db: 8, max_gain_change_db_per_second: 3, max_output_noise_level_dbfs: -50 }, input_volume_control : { enabled 0}}
(matched_filter.cc:141): AEC3: Pre echo configuration:  threshold = 0.5, mode =  3.
(transparent_mode.cc:239): AEC3 Transparent Mode: Legacy
(echo_canceller3.cc:793): AEC3 created with sample rate: 16000 Hz, num render channels: 1, num capture channels: 1
(clipping_predictor.cc:358): [AGC2] Clipping prediction disabled.
(agc_manager_direct.cc:481): [agc] analog controller enabled: yes
(agc_manager_direct.cc:484): [agc] Min mic level: 12 (overridden: no)
(agc_manager_direct.cc:507): AgcManagerDirect::Initialize
(RTCLogging.mm:33): (ARDAppEngineClient.m:55 -[ARDAppEngineClient joinRoomWithRoomId:isLoopback:completionHandler:]): Joining room:21 on room server.
2023-08-23 19:28:05.360204+0800 AppRTCMobile[95769:4390421] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=95769
2023-08-23 19:28:05.360399+0800 AppRTCMobile[95769:4390421] SecTaskCopyDebugDescription: AppRTCMobile[95769]/0#-1 LF=0
2023-08-23 19:28:05.383026+0800 AppRTCMobile[95769:4390421] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=95769
2023-08-23 19:28:05.383163+0800 AppRTCMobile[95769:4390421] SecTaskCopyDebugDescription: AppRTCMobile[95769]/0#-1 LF=0
2023-08-23 19:28:05.383231+0800 AppRTCMobile[95769:4390421] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=95769
2023-08-23 19:28:05.383342+0800 AppRTCMobile[95769:4390421] SecTaskCopyDebugDescription: AppRTCMobile[95769]/0#-1 LF=0
2023-08-23 19:28:05.402799+0800 AppRTCMobile[95769:4390421] [connection] nw_socket_handle_socket_event [C1:3] Socket SO_ERROR [61: Connection refused]
2023-08-23 19:28:05.404663+0800 AppRTCMobile[95769:4390421] [connection] nw_socket_handle_socket_event [C2:3] Socket SO_ERROR [61: Connection refused]
2023-08-23 19:28:05.405453+0800 AppRTCMobile[95769:4390421] Connection 1: received failure notification
2023-08-23 19:28:05.405530+0800 AppRTCMobile[95769:4390421] Connection 1: failed to connect 1:61, reason -1
2023-08-23 19:28:05.405575+0800 AppRTCMobile[95769:4390421] Connection 1: encountered error(1:61)
2023-08-23 19:28:05.405872+0800 AppRTCMobile[95769:4390421] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C1] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
2023-08-23 19:28:05.405921+0800 AppRTCMobile[95769:4390421] [connection] nw_connection_copy_connected_remote_endpoint_block_invoke [C1] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
2023-08-23 19:28:05.405964+0800 AppRTCMobile[95769:4390421] [connection] nw_connection_copy_protocol_metadata_internal_block_invoke [C1] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
2023-08-23 19:28:05.406502+0800 AppRTCMobile[95769:4390421] Connection 2: received failure notification
2023-08-23 19:28:05.406557+0800 AppRTCMobile[95769:4390421] Connection 2: failed to connect 1:61, reason -1
2023-08-23 19:28:05.406594+0800 AppRTCMobile[95769:4390421] Connection 2: encountered error(1:61)
2023-08-23 19:28:05.406710+0800 AppRTCMobile[95769:4390421] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C2] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
2023-08-23 19:28:05.406748+0800 AppRTCMobile[95769:4390421] [connection] nw_connection_copy_connected_remote_endpoint_block_invoke [C2] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
2023-08-23 19:28:05.406782+0800 AppRTCMobile[95769:4390421] [connection] nw_connection_copy_protocol_metadata_internal_block_invoke [C2] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
2023-08-23 19:28:05.407267+0800 AppRTCMobile[95769:4390421] Task <1719F8C3-EB0A-41D6-83DE-BA1FE9FE7C6C>.<1> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2023-08-23 19:28:05.407360+0800 AppRTCMobile[95769:4390421] Task <094EBCF9-7A49-49F5-8B42-86229F03FF3F>.<2> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2023-08-23 19:28:05.412589+0800 AppRTCMobile[95769:4390421] Task <1719F8C3-EB0A-41D6-83DE-BA1FE9FE7C6C>.<1> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600002c82430 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: lo0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <1719F8C3-EB0A-41D6-83DE-BA1FE9FE7C6C>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <1719F8C3-EB0A-41D6-83DE-BA1FE9FE7C6C>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://127.0.0.1:3030/iceconfig, NSErrorFailingURLKey=https://127.0.0.1:3030/iceconfig, _kCFStreamErrorDomainKey=1}
(RTCLogging.mm:33): (ARDAppClient.m:248 -[ARDAppClient connectToRoomWithId:settings:isLoopback:]_block_invoke): Error retrieving TURN servers: Could not connect to the server.
2023-08-23 19:28:05.412931+0800 AppRTCMobile[95769:4390421] Task <094EBCF9-7A49-49F5-8B42-86229F03FF3F>.<2> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600002d58ae0 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: lo0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <094EBCF9-7A49-49F5-8B42-86229F03FF3F>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <094EBCF9-7A49-49F5-8B42-86229F03FF3F>.<2>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://127.0.0.1:8080/join/21?debug=loopback, NSErrorFailingURLKey=https://127.0.0.1:8080/join/21?debug=loopback, _kCFStreamErrorDomainKey=1}
=================================================================
Main Thread Checker: UI API called on a background thread: -[NSViewController view]
PID: 95769, TID: 4390421, Thread name: (none), Queue name: com.apple.NSURLSession-delegate, QoS: 0
Backtrace:
4   AppRTCMobile                        0x000000010a817911 -[APPRTCViewController mainView] + 33
5   AppRTCMobile                        0x000000010a817b54 -[APPRTCViewController resetUI] + 52
6   AppRTCMobile                        0x000000010a817d31 -[APPRTCViewController disconnect] + 33
7   AppRTCMobile                        0x000000010a817647 -[APPRTCViewController appClient:didError:] + 183
8   AppRTCMobile                        0x000000010a8438a1 __56-[ARDAppClient connectToRoomWithId:settings:isLoopback:]_block_invoke.117 + 225
9   AppRTCMobile                        0x000000010a849a59 __70-[ARDAppEngineClient joinRoomWithRoomId:isLoopback:completionHandler:]_block_invoke + 153
10  AppRTCMobile                        0x000000010a8184ae __68+[NSURLConnection(ARDUtilities) sendAsyncRequest:completionHandler:]_block_invoke + 142
11  CFNetwork                           0x00007ff81daa82f8 CFURLCredentialStorageCopyAllCredentials + 26438
12  CFNetwork                           0x00007ff81da3f792 CFURLRequestCopyAllHTTPHeaderFields + 8603
13  libdispatch.dylib                   0x0000000110e6e69d _dispatch_call_block_and_release + 12
14  libdispatch.dylib                   0x0000000110e6f98e _dispatch_client_callout + 8
15  libdispatch.dylib                   0x0000000110e7722f _dispatch_lane_serial_drain + 928
16  libdispatch.dylib                   0x0000000110e781b5 _dispatch_lane_invoke + 483
17  libdispatch.dylib                   0x0000000110e86501 _dispatch_workloop_worker_thread + 829
18  libsystem_pthread.dylib             0x0000000110a9f3ed _pthread_wqthread + 327
19  libsystem_pthread.dylib             0x0000000110aa5bdb start_wqthread + 15
2023-08-23 19:28:05.426067+0800 AppRTCMobile[95769:4390421] [reports] Main Thread Checker: UI API called on a background thread: -[NSViewController view]
PID: 95769, TID: 4390421, Thread name: (none), Queue name: com.apple.NSURLSession-delegate, QoS: 0
Backtrace:
4   AppRTCMobile                        0x000000010a817911 -[APPRTCViewController mainView] + 33
5   AppRTCMobile                        0x000000010a817b54 -[APPRTCViewController resetUI] + 52
6   AppRTCMobile                        0x000000010a817d31 -[APPRTCViewController disconnect] + 33
7   AppRTCMobile                        0x000000010a817647 -[APPRTCViewController appClient:didError:] + 183
8   AppRTCMobile                        0x000000010a8438a1 __56-[ARDAppClient connectToRoomWithId:settings:isLoopback:]_block_invoke.117 + 225
9   AppRTCMobile                        0x000000010a849a59 __70-[ARDAppEngineClient joinRoomWithRoomId:isLoopback:completionHandler:]_block_invoke + 153
10  AppRTCMobile                        0x000000010a8184ae __68+[NSURLConnection(ARDUtilities) sendAsyncRequest:completionHandler:]_block_invoke + 142
11  CFNetwork                           0x00007ff81daa82f8 CFURLCredentialStorageCopyAllCredentials + 26438
12  CFNetwork                           0x00007ff81da3f792 CFURLRequestCopyAllHTTPHeaderFields + 8603
13  libdispatch.dylib                   0x0000000110e6e69d _dispatch_call_block_and_release + 12
14  libdispatch.dylib                   0x0000000110e6f98e _dispatch_client_callout + 8
15  libdispatch.dylib                   0x0000000110e7722f _dispatch_lane_serial_drain + 928
16  libdispatch.dylib                   0x0000000110e781b5 _dispatch_lane_invoke + 483
17  libdispatch.dylib                   0x0000000110e86501 _dispatch_workloop_worker_thread + 829
18  libsystem_pthread.dylib             0x0000000110a9f3ed _pthread_wqthread + 327
19  libsystem_pthread.dylib             0x0000000110aa5bdb start_wqthread + 15
(webrtc_video_engine.cc:725): WebRtcVideoEngine::~WebRtcVideoEngine
(webrtc_voice_engine.cc:370): WebRtcVoiceEngine::~WebRtcVoiceEngine
(audio_device_impl.cc:762): StopPlayout
(audio_device_mac.cc:1450): StopPlayout
(audio_device_impl.cc:766): output: 0
(audio_device_impl.cc:793): StopRecording
(audio_device_mac.cc:1317): StopRecording
(audio_device_impl.cc:797): output: 0
(audio_device_impl.cc:811): RegisterAudioCallback
(audio_device_buffer.cc:86): RegisterAudioCallback
(audio_device_impl.cc:309): Terminate
(audio_device_impl.cc:278): ~AudioDeviceModuleImpl
(audio_device_mac.cc:144): ~AudioDeviceMac destroyed
(audio_mixer_manager_mac.cc:53): ~AudioMixerManagerMac destroyed
(audio_device_buffer.cc:80): AudioDeviceBuffer::~dtor
2023-08-23 19:28:06.256737+0800 AppRTCMobile[95769:4389695] [default] CGSWindowShmemCreateWithPort failed on port 0
2023-08-23 19:28:06.276449+0800 AppRTCMobile[95769:4389695] [default] CGSWindowShmemCreateWithPort failed on port 0
Failed to open: /Users/bytedance/Documents/webrtc_logs/webrtc_log_0 Error: 1
(RTCFileLogger.mm:104): Failed to open log files at path: /Users/bytedance/Documents/webrtc_logs
(input_volume_stats_reporter.cc:98): Will not log any `WebRTC.Audio.Apm.AppliedInputVolume.*` histogram stats.
(input_volume_stats_reporter.cc:98): Will not log any `WebRTC.Audio.Apm.RecommendedInputVolume.*` histogram stats.
(audio_processing_impl.cc:695): Injected APM submodules:
Echo control factory: 0
Echo detector: 0
Capture analyzer: 0
Capture post processor: 0
Render pre processor: 0
(audio_processing_impl.cc:708): AudioProcessing: AudioProcessing::Config{ pipeline: { maximum_internal_processing_rate: 48000, multi_channel_render: 0, multi_channel_capture: 0 }, pre_amplifier: { enabled: 0, fixed_gain_factor: 1 },capture_level_adjustment: { enabled: 0, pre_gain_factor: 1, post_gain_factor: 1, analog_mic_gain_emulation: { enabled: 0, initial_level: 255 }}, high_pass_filter: { enabled: 0 }, echo_canceller: { enabled: 0, mobile_mode: 0, enforce_high_pass_filtering: 1 }, noise_suppression: { enabled: 0, level: Moderate }, transient_suppression: { enabled: 0 }, gain_controller1: { enabled: 0, mode: AdaptiveAnalog, target_level_dbfs: 3, compression_gain_db: 9, enable_limiter: 1, analog_gain_controller { enabled: 1, startup_min_volume: 0, clipped_level_min: 70, enable_digital_adaptive: 1, clipped_level_step: 15, clipped_ratio_threshold: 0.1, clipped_wait_frames: 300, clipping_predictor:  { enabled: 0, mode: 0, window_length: 5, reference_window_length: 5, reference_window_delay: 5, clipping_threshold: -1, crest_factor_margin: 3, use_predicted_step: 1 }}}, gain_controller2: { enabled: 0, fixed_digital: { gain_db: 0 }, adaptive_digital: { enabled: 0, headroom_db: 6, max_gain_db: 30, initial_gain_db: 8, max_gain_change_db_per_second: 3, max_output_noise_level_dbfs: -50 }, input_volume_control : { enabled 0}}
(webrtc_voice_engine.cc:362): WebRtcVoiceEngine::WebRtcVoiceEngine
(webrtc_video_engine.cc:721): WebRtcVideoEngine::WebRtcVideoEngine()
(webrtc_voice_engine.cc:384): WebRtcVoiceEngine::Init
(audio_device_impl.cc:67): Create
(audio_device_impl.cc:75): CreateForTest
(audio_device_buffer.cc:66): AudioDeviceBuffer::ctor
(audio_device_impl.cc:120): AudioDeviceModuleImpl
(audio_device_impl.cc:135): CheckPlatform
(audio_device_impl.cc:152): current platform is Mac
(audio_device_impl.cc:168): CreatePlatformSpecificObjects
(audio_device_impl.cc:907): PlatformAudioLayer
(audio_mixer_manager_mac.cc:49): AudioMixerManagerMac created
(audio_device_mac.cc:134): AudioDeviceMac created
(audio_device_impl.cc:252): Mac OS X Audio APIs will be utilized.
(audio_device_impl.cc:272): AttachAudioBuffer
(audio_device_buffer.cc:186): SetRecordingSampleRate(48000)
(audio_device_buffer.cc:192): SetPlayoutSampleRate(48000)
(audio_device_buffer.cc:206): SetRecordingChannels(1)
(audio_device_buffer.cc:212): SetPlayoutChannels(2)
(audio_device_impl.cc:292): Init
(audio_device_impl.cc:636): SetPlayoutDevice(0)
(audio_device_impl.cc:325): InitSpeaker
(audio_device_mac.cc:1787): Output device: Apple Inc. 外置耳机
(audio_device_impl.cc:540): StereoPlayoutIsAvailable
(audio_mixer_manager_mac.cc:199): SpeakerIsInitialized
(audio_device_impl.cc:547): output: 1
(audio_device_impl.cc:552): SetStereoPlayout(1)
(audio_device_buffer.cc:212): SetPlayoutChannels(2)
(audio_device_impl.cc:698): SetRecordingDevice(0)
(audio_device_impl.cc:331): InitMicrophone
(audio_device_mac.cc:1785): Input device: Apple Inc. 外置麦克风
(audio_device_impl.cc:494): StereoRecordingIsAvailable
(audio_mixer_manager_mac.cc:205): MicrophoneIsInitialized
(audio_device_impl.cc:501): output: 0
(audio_device_impl.cc:506): SetStereoRecording(0)
(audio_device_buffer.cc:206): SetRecordingChannels(1)
(audio_device_impl.cc:811): RegisterAudioCallback
(audio_device_buffer.cc:86): RegisterAudioCallback
(webrtc_voice_engine.cc:491): WebRtcVoiceEngine::ApplyOptions: AudioOptions {aec: 1, agc: 1, ns: 1, hf: 1, swap: 0, audio_jitter_buffer_max_packets: 200, audio_jitter_buffer_fast_accelerate: 0, audio_jitter_buffer_min_delay_ms: 0, }
(audio_device_impl.cc:827): BuiltInAECIsAvailable
(audio_device_generic.cc:18): virtual bool webrtc::AudioDeviceGeneric::BuiltInAECIsAvailable() const: Not supported on this platform
(audio_device_impl.cc:830): output: 0
(audio_device_impl.cc:843): BuiltInAGCIsAvailable
(audio_device_generic.cc:28): virtual bool webrtc::AudioDeviceGeneric::BuiltInAGCIsAvailable() const: Not supported on this platform
(audio_device_impl.cc:846): output: 0
(audio_device_impl.cc:859): BuiltInNSIsAvailable
(audio_device_generic.cc:38): virtual bool webrtc::AudioDeviceGeneric::BuiltInNSIsAvailable() const: Not supported on this platform
(audio_device_impl.cc:862): output: 0
(audio_processing_impl.cc:911): AudioProcessing::ApplyConfig: AudioProcessing::Config{ pipeline: { maximum_internal_processing_rate: 48000, multi_channel_render: 0, multi_channel_capture: 0 }, pre_amplifier: { enabled: 0, fixed_gain_factor: 1 },capture_level_adjustment: { enabled: 0, pre_gain_factor: 1, post_gain_factor: 1, analog_mic_gain_emulation: { enabled: 0, initial_level: 255 }}, high_pass_filter: { enabled: 1 }, echo_canceller: { enabled: 1, mobile_mode: 0, enforce_high_pass_filtering: 1 }, noise_suppression: { enabled: 1, level: High }, transient_suppression: { enabled: 0 }, gain_controller1: { enabled: 1, mode: AdaptiveAnalog, target_level_dbfs: 3, compression_gain_db: 9, enable_limiter: 1, analog_gain_controller { enabled: 1, startup_min_volume: 0, clipped_level_min: 70, enable_digital_adaptive: 1, clipped_level_step: 15, clipped_ratio_threshold: 0.1, clipped_wait_frames: 300, clipping_predictor:  { enabled: 0, mode: 0, window_length: 5, reference_window_length: 5, reference_window_delay: 5, clipping_threshold: -1, crest_factor_margin: 3, use_predicted_step: 1 }}}, gain_controller2: { enabled: 0, fixed_digital: { gain_db: 0 }, adaptive_digital: { enabled: 0, headroom_db: 6, max_gain_db: 30, initial_gain_db: 8, max_gain_change_db_per_second: 3, max_output_noise_level_dbfs: -50 }, input_volume_control : { enabled 0}}
(matched_filter.cc:141): AEC3: Pre echo configuration:  threshold = 0.5, mode =  3.
(transparent_mode.cc:239): AEC3 Transparent Mode: Legacy
(echo_canceller3.cc:793): AEC3 created with sample rate: 16000 Hz, num render channels: 1, num capture channels: 1
(clipping_predictor.cc:358): [AGC2] Clipping prediction disabled.
(agc_manager_direct.cc:481): [agc] analog controller enabled: yes
(agc_manager_direct.cc:484): [agc] Min mic level: 12 (overridden: no)
(agc_manager_direct.cc:507): AgcManagerDirect::Initialize
(RTCLogging.mm:33): (ARDAppEngineClient.m:55 -[ARDAppEngineClient joinRoomWithRoomId:isLoopback:completionHandler:]): Joining room:21 on room server.
2023-08-23 19:29:39.980856+0800 AppRTCMobile[95769:4394539] [connection] nw_socket_handle_socket_event [C3:3] Socket SO_ERROR [61: Connection refused]
2023-08-23 19:29:39.982621+0800 AppRTCMobile[95769:4394539] Connection 3: received failure notification
2023-08-23 19:29:39.982703+0800 AppRTCMobile[95769:4394539] Connection 3: failed to connect 1:61, reason -1
2023-08-23 19:29:39.982744+0800 AppRTCMobile[95769:4394539] Connection 3: encountered error(1:61)
2023-08-23 19:29:39.982975+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C3] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
2023-08-23 19:29:39.983018+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_connected_remote_endpoint_block_invoke [C3] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
2023-08-23 19:29:39.983054+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_protocol_metadata_internal_block_invoke [C3] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
2023-08-23 19:29:39.983881+0800 AppRTCMobile[95769:4394539] Task <E7109BE7-508B-48D4-8E5E-1D42C8C630C5>.<3> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2023-08-23 19:29:39.984336+0800 AppRTCMobile[95769:4394547] Task <E7109BE7-508B-48D4-8E5E-1D42C8C630C5>.<3> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600002d48450 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: lo0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <E7109BE7-508B-48D4-8E5E-1D42C8C630C5>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <E7109BE7-508B-48D4-8E5E-1D42C8C630C5>.<3>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://127.0.0.1:3030/iceconfig, NSErrorFailingURLKey=https://127.0.0.1:3030/iceconfig, _kCFStreamErrorDomainKey=1}
(RTCLogging.mm:33): (ARDAppClient.m:248 -[ARDAppClient connectToRoomWithId:settings:isLoopback:]_block_invoke): Error retrieving TURN servers: Could not connect to the server.
2023-08-23 19:29:39.986481+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_context_handle_fatal_alert(1991) [C4:2][0x7fafa270bc90] write alert, level: fatal, description: protocol version
2023-08-23 19:29:39.986641+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_context_error_print(1981) [C4:2][0x7fafa270bc90] Error: 140393144552840:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:/AppleInternal/Library/BuildRoots/c662932c-e5cc-11ed-9310-528baff8c51f/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/tls_record.cc:242:
2023-08-23 19:29:39.991342+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_session_handshake_incomplete(88) [C4:2][0x7fafa270bc90] SSL library error
2023-08-23 19:29:39.991404+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_session_handshake_error_print(43) [C4:2][0x7fafa270bc90] Error: 140393144552840:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:/AppleInternal/Library/BuildRoots/c662932c-e5cc-11ed-9310-528baff8c51f/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/tls_record.cc:242:
2023-08-23 19:29:39.991448+0800 AppRTCMobile[95769:4394539] [boringssl] nw_protocol_boringssl_handshake_negotiate_proceed(771) [C4:2][0x7fafa270bc90] handshake failed at state 12288: not completed
2023-08-23 19:29:39.992199+0800 AppRTCMobile[95769:4394539] Connection 4: received failure notification
2023-08-23 19:29:39.992288+0800 AppRTCMobile[95769:4394539] Connection 4: failed to connect 3:-9836, reason -1
2023-08-23 19:29:39.992328+0800 AppRTCMobile[95769:4394539] Connection 4: encountered error(3:-9836)
2023-08-23 19:29:39.992516+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C4] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
2023-08-23 19:29:39.992578+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_connected_remote_endpoint_block_invoke [C4] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
2023-08-23 19:29:39.992647+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_protocol_metadata_internal_block_invoke [C4] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
2023-08-23 19:29:39.998608+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_context_handle_fatal_alert(1991) [C5:2][0x7fafd27395d0] write alert, level: fatal, description: protocol version
2023-08-23 19:29:39.998699+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_context_error_print(1981) [C5:2][0x7fafd27395d0] Error: 140393144552840:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:/AppleInternal/Library/BuildRoots/c662932c-e5cc-11ed-9310-528baff8c51f/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/tls_record.cc:242:
2023-08-23 19:29:39.999021+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_session_handshake_incomplete(88) [C5:2][0x7fafd27395d0] SSL library error
2023-08-23 19:29:39.999082+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_session_handshake_error_print(43) [C5:2][0x7fafd27395d0] Error: 140393144552840:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:/AppleInternal/Library/BuildRoots/c662932c-e5cc-11ed-9310-528baff8c51f/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/tls_record.cc:242:
2023-08-23 19:29:39.999155+0800 AppRTCMobile[95769:4394539] [boringssl] nw_protocol_boringssl_handshake_negotiate_proceed(771) [C5:2][0x7fafd27395d0] handshake failed at state 12288: not completed
2023-08-23 19:29:40.000174+0800 AppRTCMobile[95769:4394539] Connection 5: received failure notification
2023-08-23 19:29:40.000266+0800 AppRTCMobile[95769:4394539] Connection 5: failed to connect 3:-9836, reason -1
2023-08-23 19:29:40.000309+0800 AppRTCMobile[95769:4394539] Connection 5: encountered error(3:-9836)
2023-08-23 19:29:40.000440+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C5] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
2023-08-23 19:29:40.000480+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_connected_remote_endpoint_block_invoke [C5] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
2023-08-23 19:29:40.000531+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_protocol_metadata_internal_block_invoke [C5] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
2023-08-23 19:29:40.005261+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_context_handle_fatal_alert(1991) [C6:2][0x7fafd3e0f490] write alert, level: fatal, description: protocol version
2023-08-23 19:29:40.005368+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_context_error_print(1981) [C6:2][0x7fafd3e0f490] Error: 140393144552840:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:/AppleInternal/Library/BuildRoots/c662932c-e5cc-11ed-9310-528baff8c51f/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/tls_record.cc:242:
2023-08-23 19:29:40.005754+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_session_handshake_incomplete(88) [C6:2][0x7fafd3e0f490] SSL library error
2023-08-23 19:29:40.005832+0800 AppRTCMobile[95769:4394539] [boringssl] boringssl_session_handshake_error_print(43) [C6:2][0x7fafd3e0f490] Error: 140393144552840:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:/AppleInternal/Library/BuildRoots/c662932c-e5cc-11ed-9310-528baff8c51f/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/tls_record.cc:242:
2023-08-23 19:29:40.007576+0800 AppRTCMobile[95769:4394539] [boringssl] nw_protocol_boringssl_handshake_negotiate_proceed(771) [C6:2][0x7fafd3e0f490] handshake failed at state 12288: not completed
2023-08-23 19:29:40.008639+0800 AppRTCMobile[95769:4394539] Connection 6: received failure notification
2023-08-23 19:29:40.008723+0800 AppRTCMobile[95769:4394539] Connection 6: failed to connect 3:-9836, reason -1
2023-08-23 19:29:40.008764+0800 AppRTCMobile[95769:4394539] Connection 6: encountered error(3:-9836)
2023-08-23 19:29:40.008889+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C6] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
2023-08-23 19:29:40.008931+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_connected_remote_endpoint_block_invoke [C6] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
2023-08-23 19:29:40.008966+0800 AppRTCMobile[95769:4394539] [connection] nw_connection_copy_protocol_metadata_internal_block_invoke [C6] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
2023-08-23 19:29:40.009525+0800 AppRTCMobile[95769:4394539] Task <EEC5711C-E535-4002-A44F-B93E37A17044>.<4> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9836])
2023-08-23 19:29:40.010180+0800 AppRTCMobile[95769:4390400] Task <EEC5711C-E535-4002-A44F-B93E37A17044>.<4> finished with error [-1200] Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=https://127.0.0.1:8080/join/21?debug=loopback, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <EEC5711C-E535-4002-A44F-B93E37A17044>.<4>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <EEC5711C-E535-4002-A44F-B93E37A17044>.<4>"
), NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://127.0.0.1:8080/join/21?debug=loopback, NSUnderlyingError=0x600002d48450 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9836, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9836, _NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: lo0}}, _kCFStreamErrorCodeKey=-9836}
(webrtc_video_engine.cc:725): WebRtcVideoEngine::~WebRtcVideoEngine

Facing issue when try to build

After running below command

gn gen out/Debug --args='target_os="android" target_cpu="arm"'
get below error

gn.py: Could not find checkout in any parent of the current path.
This must be run inside a checkout.

Peerconnection startRecorder not working

Recording not working
i tried below code to start recording
peerConnection.startRecorder(RtpTransceiver.RtpTransceiverDirection.RECV_ONLY.ordinal(), "/{path}/example.mp4")

and called to stop it
peerConnection.stopRecorder(RtpTransceiver.RtpTransceiverDirection.RECV_ONLY.ordinal())
but there is no file recorded

Fatal error,How to solve

11-29 19:10:53.988 11589-11589/org.appspot.apprtc E/AppRTCMobileActivity: Fatal error: Attempt to invoke virtual method 'org.webrtc.DataChannel org.webrtc.PeerConnection.createDataChannel(java.lang.String, org.webrtc.DataChannel$Init)' on a null object reference

                                                                      java.lang.NullPointerException: Attempt to invoke virtual method 'org.webrtc.DataChannel org.webrtc.PeerConnection.createDataChannel(java.lang.String, org.webrtc.DataChannel$Init)' on a null object reference
                                                                          at org.appspot.apprtc.PeerConnectionClient.createPeerConnectionInternal(PeerConnectionClient.java:647)
                                                                          at org.appspot.apprtc.PeerConnectionClient.access$500(PeerConnectionClient.java:78)
                                                                          at org.appspot.apprtc.PeerConnectionClient$2.run(PeerConnectionClient.java:363)
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                          at java.lang.Thread.run(Thread.java:833)

Error Domain=ARDAppClient Code=-4 "Failed to set session description." UserInfo={NSLocalizedDescription=Failed to set session description.}

Mac os
xcode 13

Error Domain=ARDAppClient Code=-4 "Failed to set session description." UserInfo={NSLocalizedDescription=Failed to set session description.}

[309:019][259] (RTCLogging.mm:33): (ARDAppClient.m:502 -[ARDAppClient peerConnection:didSetSessionDescriptionWithError:]_block_invoke): Failed to set session description. Error: Error Domain=org.webrtc.RTC_OBJC_TYPE(RTCPeerConnection) Code=-1 "Failed to set remote answer sdp: Failed to apply the description for m= section with mid='0': Answerer must use either active or passive value for setup attribute." UserInfo={NSLocalizedDescription=Failed to set remote answer sdp: Failed to apply the description for m= section with mid='0': Answerer must use either active or passive value for setup attribute.}

h264的支持

清华大虾你好,原版app好像只支持vp8 vp9,但是c++代码里面有不少h264的代码,gn gen的参数也有h264的部分,但是对于安卓跟ios好像默认不使能的,我试了下强行使能它,但是在app里面使用h264编码,出来的结果还是vp8。不知道你对这方面有没有了解?欢迎交流,如果能直接兼容好h264,那就更好了。

你好,想问一下webrtc本地回环是怎么实现的?

我照着您书上的代码块,写了一个简单地1v1,demo; ios ;socketrocket 连接信令服务器ws进行message type的转发;想问问您本地回环是怎么做的;我现在自己发offer给自己,然后遇到answer就不处理(我看官方demo里有注释说本地回环不处理answer);其他的也没变;可是我发现 offer ,setlocalsdp candidate,等也有网络传输;message.type::: candidate,
body: {"session_id":"L3Lv5eLF4XGZ-L3Lv5eLF4XGZ","to":"L3Lv5eLF4XGZ","candidate":{"sdpMLineIndex":0,"candidate":"candidate:1078800203 1 tcp 1518149375 169.254.81.159 54571 typ host tcptype passive generation 0 ufrag mF+B network-id 3 network-cost 10","sdpMid":"audio"},"type":"candidate"}
也已经触发了远端媒体流的接收:
vc.onAddStream = ^(PeerConnection *_Nonnull connect, RTCPeerConnection *_Nonnull peerConnection, RTCMediaStream *_Nonnull stream) {

    PeerConnection *pc = connect;
    dispatch_async(dispatch_get_main_queue(), ^{
        __strong CallVC *strongSelf = weakSelf;
        if (stream.videoTracks.count > 0 && pc != NULL) {
            RTCVideoTrack *remoteVideoTrack = stream.videoTracks[0];
            RTCEAGLVideoView *remoteView = strongSelf.remoteView;
            [remoteVideoTrack addRenderer:remoteView];
            pc.videoTrack = remoteVideoTrack;
        }
    });
};

这是本地打印:
didReceiveMessage{"type":"candidate","data":{"from":"L3Lv5F4XGZ","to":"L3Lv5F4XGZ","candidate":{"sdpMLineIndex":0,"candidate":"candidate:1078800203 1 tcp 1518149375 169.254.81.159 54571 typ host tcptype passive generation 0 ufrag mF+B network-id 3 network-cost 10","sdpMid":"audio"}}}

但是就是没有音视频的播放;由于我使用的是iOS pod 直接安装的webrtc,所以无法断点调试;想问下,您这个loopback是怎是实现的,有哪些注意点

谢谢

What is it for

Can I use this repository to integrate webrtc to my existing app?

The native code development link is not working.

absl not reference error

Dear:
I use your poject and update to m78 the day before yesterday, when I build, it is not correct, log is:

/work/av/m78/src/media/base/codec.cc:66: undefined reference to `absl::EqualsIgnoreCase

but I can find the symbol in libabsl_absl_strings.a
root@m:~/AndroidStudioProjects/apprtcmobileEx/libwebrtc/.cxx/cmake/debug/arm64-v8a/third_party/abseil-cpp/abseil-cpp/absl/strings# aarch64-linux-gnu-nm libabsl_absl_strings.a |grep "EqualsIgnoreCase"
0000000000000000 T ZN4absl16EqualsIgnoreCaseENS_11string_viewES0
U ZN4absl16EqualsIgnoreCaseENS_11string_viewES0

I find that, in the main CMakeList.txt, there is absl::strings in target_link_libraries

is there someting different in the new code ? if I use new code tree, but the old abseil-cpp floder or the offical floder download from github, the same problem occur.

ps:
I can build correctly when I do not update the code to m78.

please help, thanks !

Fatal signal 11 (SIGSEGV), code 1, fault addr 0xf4240 in tid 31457 (DecodingQueue -)

Hi this issue is coming only if I have enabled startRecorder function
startRecorder(RtpTransceiver.RtpTransceiverDirection.RECV_ONLY.ordinal(), recordingPath)

Build fingerprint: 'samsung/on5xeltejv/on5xelte:8.0.0/R16NW/G570FXXS3CTG1:user/release-keys'�[0m
�[38;5;196m10-28 19:29:47.079 17333 17333 F DEBUG : Revision: '4'�[0m
�[38;5;196m10-28 19:29:47.079 17333 17333 F DEBUG : ABI: 'arm'�[0m
�[38;5;196m10-28 19:29:47.079 17333 17333 F DEBUG : pid: 26085, tid: 31457, name: DecodingQueue - >>> com.example <<<�[0m
�[38;5;196m10-28 19:29:47.079 17333 17333 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf4240�[0m
�[38;5;196m10-28 19:29:47.079 17333 17333 F DEBUG : r0 ce375d70 r1 000f4240 r2 00000000 r3 00000008�[0m
�[38;5;196m10-28 19:29:47.079 17333 17333 F DEBUG : r4 caf79778 r5 cbe43c08 r6 caf79778 r7 00000000�[0m
�[38;5;196m10-28 19:29:47.079 17333 17333 F DEBUG : r8 00000000 r9 26ac7696 sl cb3e0800 fp cc565288�[0m
�[38;5;196m10-28 19:29:47.079 17333 17333 F DEBUG : ip 00000000 sp caf79768 lr c7667c5d pc 000f4240 cpsr 400f0010�[0m
�[38;5;196m10-28 19:29:47.096 17333 17333 F DEBUG : �[0m
�[38;5;196m10-28 19:29:47.096 17333 17333 F DEBUG : backtrace:�[0m
�[38;5;196m10-28 19:29:47.096 17333 17333 F DEBUG : #00 pc 000f4240 �[0m
�[38;5;196m10-28 19:29:47.096 17333 17333 F DEBUG : #1 pc 0024cc5b /data/app/com.example-NTsZDh-nLK4lDw5LcAhVWA==/base.apk (offset 0xdb1000)�[0m
�[38;5;196m10-28 19:29:47.096 17333 17333 F DEBUG : #2 pc 0056c2db /data/app/com.example-NTsZDh-nLK4lDw5LcAhVWA==/base.apk (offset 0xdb1000)�[0m
�[38;5;196m10-28 19:29:47.096 17333 17333 F DEBUG : #3 pc 0056cbe9 /data/app/com.example-NTsZDh-nLK4lDw5LcAhVWA==/base.apk (offset 0xdb1000)�[0m
�[38;5;196m10-28 19:29:47.096 17333 17333 F DEBUG : #4 pc 004ae36d /data/app/com.example-NTsZDh-nLK4lDw5LcAhVWA==/base.apk (offset 0xdb1000)�[0m
�[38;5;196m10-28 19:29:47.096 17333 17333 F DEBUG : #5 pc 004b2131 /data/app/com.example-NTsZDh-nLK4lDw5LcAhVWA==/base.apk (offset 0xdb1000)�[0m
�[38;5;196m10-28 19:29:47.097 17333 17333 F DEBUG : #6 pc 004ae231 /data/app/com.example-NTsZDh-nLK4lDw5LcAhVWA==/base.apk (offset 0xdb1000)�[0m
�[38;5;196m10-28 19:29:47.097 17333 17333 F DEBUG : #7 pc 0022c015 /data/app/com.example-NTsZDh-nLK4lDw5LcAhVWA==/base.apk (offset 0xdb1000)�[0m
�[38;5;196m10-28 19:29:47.097 17333 17333 F DEBUG : #8 pc 00048a89 /system/lib/libc.so (_ZL15__pthread_startPv+24)�[0m
�[38;5;196m10-28 19:29:47.097 17333 17333 F DEBUG : #9 pc 0001b34f /system/lib/libc.so (__start_thread+32)�[0m
�[38;5;196m10-28 22:10:46.210 13093 16167 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 16167 (recorder)�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : Build fingerprint: 'samsung/on5xeltejv/on5xelte:8.0.0/R16NW/G570FXXS3CTG1:user/release-keys'�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : Revision: '4'�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : ABI: 'arm'�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : pid: 13093, tid: 16167, name: recorder >>> com.example <<<�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : Cause: null pointer dereference�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : r0 00000000 r1 00000000 r2 ffffffff r3 00000000�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : r4 cea58ce0 r5 c618cf00 r6 cd4bde2c r7 cea19500�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : r8 c8685572 r9 c757f808 sl c757f7b8 fp c757f7c0�[0m
�[38;5;196m10-28 22:10:46.521 20429 20429 F DEBUG : ip f3c2dd58 sp c757f788 lr c876bb6d pc c875b476 cpsr 600f0030�[0m
�[38;5;196m10-28 22:10:46.536 20429 20429 F DEBUG : �[0m
�[38;5;196m10-28 22:10:46.536 20429 20429 F DEBUG : backtrace:�[0m
�[38;5;196m10-28 22:10:46.536 20429 20429 F DEBUG : #00 pc 001ce476 /data/app/com.example-xxslq9VLMA7PBAbcQIPfmw==/base.apk (offset 0x1def000)�[0m
�[38;5;196m10-28 22:10:46.536 20429 20429 F DEBUG : #1 pc 001deb69 /data/app/com.example-xxslq9VLMA7PBAbcQIPfmw==/base.apk (offset 0x1def000)�[0m
�[38;5;196m10-28 22:10:46.536 20429 20429 F DEBUG : #2 pc 001df4a9 /data/app/com.example-xxslq9VLMA7PBAbcQIPfmw==/base.apk (offset 0x1def000)�[0m
�[38;5;196m10-28 22:10:46.536 20429 20429 F DEBUG : #3 pc 001dfb69 /data/app/com.example-xxslq9VLMA7PBAbcQIPfmw==/base.apk (offset 0x1def000)�[0m
�[38;5;196m10-28 22:10:46.536 20429 20429 F DEBUG : #4 pc 004ae36d /data/app/com.example-xxslq9VLMA7PBAbcQIPfmw==/base.apk (offset 0x1def000)�[0m
�[38;5;196m10-28 22:10:46.536 20429 20429 F DEBUG : #5 pc 004b2131 /data/app/com.example-xxslq9VLMA7PBAbcQIPfmw==/base.apk (offset 0x1def000)�[0m
�[38;5;196m10-28 22:10:46.536 20429 20429 F DEBUG : #6 pc 004ae231 /data/app/com.example-xxslq9VLMA7PBAbcQIPfmw==/base.apk (offset 0x1def000)�[0m
�[38;5;196m10-28 22:10:46.537 20429 20429 F DEBUG : #7 pc 0022c015 /data/app/com.example-xxslq9VLMA7PBAbcQIPfmw==/base.apk (offset 0x1def000)�[0m
�[38;5;196m10-28 22:10:46.537 20429 20429 F DEBUG : #8 pc 00048a89 /system/lib/libc.so (_ZL15__pthread_startPv+24)�[0m
�[38;5;196m10-28 22:10:46.537 20429 20429 F DEBUG : #9 pc 0001b34f /system/lib/libc.so (__start_thread+32)�[0m
�[38;5;196m10-29 17:28:36.805 19806 24013 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 24013 (JNISurfaceTextu)�[0m
�[38;5;196m10-29 17:28:37.124 24098 24098 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***�[0m
�[38;5;196m10-29 17:28:37.125 24098 24098 F DEBUG : Build fingerprint: 'samsung/on5xeltejv/on5xelte:8.0.0/R16NW/G570FXXS3CTG1:user/release-keys'�[0m
�[38;5;196m10-29 17:28:37.125 24098 24098 F DEBUG : Revision: '4'�[0m
�[38;5;196m10-29 17:28:37.125 24098 24098 F DEBUG : ABI: 'arm'�[0m
�[38;5;196m10-29 17:28:37.125 24098 24098 F DEBUG : pid: 19806, tid: 24013, name: JNISurfaceTextu >>> com.example <<<�[0m
�[38;5;196m10-29 17:28:37.125 24098 24098 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------�[0m
�[38;5;196m10-29 17:28:37.140 24098 24098 F DEBUG : Abort message: 'decWeak called on 0xcc45edc0 too many times'�[0m
�[38;5;196m10-29 17:28:37.140 24098 24098 F DEBUG : r0 00000000 r1 00005dcd r2 00000006 r3 00000008�[0m
�[38;5;196m10-29 17:28:37.140 24098 24098 F DEBUG : r4 00004d5e r5 00005dcd r6 ca37f230 r7 0000010c�[0m
�[38;5;196m10-29 17:28:37.140 24098 24098 F DEBUG : r8 cdeb4490 r9 00000000 sl ca37f808 fp 00000000�[0m
�[38;5;196m10-29 17:28:37.140 24098 24098 F DEBUG : ip 00000000 sp ca37f220 lr f3bb74d7 pc f3be880c cpsr 200f0010�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : �[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : backtrace:�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #00 pc 0004b80c /system/lib/libc.so (tgkill+12)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #1 pc 0001a4d3 /system/lib/libc.so (abort+54)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #2 pc 00006683 /system/lib/liblog.so (__android_log_assert+154)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #3 pc 0000aeef /system/lib/libutils.so (_ZN7android7RefBase12weakref_type7decWeakEPKv+122)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #4 pc 000b7783 /system/lib/libstagefright.so (_ZN7android18SharedMemoryBufferD2Ev+30)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #5 pc 000b77ab /system/lib/libstagefright.so (_ZN7android18SharedMemoryBufferD0Ev+2)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #6 pc 0000ae1b /system/lib/libutils.so (_ZNK7android7RefBase9decStrongEPKv+70)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #7 pc 000adc05 /system/lib/libstagefright.so (_ZNK7android6VectorINS_6ACodec10BufferInfoEE10do_destroyEPvj+74)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #8 pc 0000e8ed /system/lib/libutils.so (_ZN7android10VectorImpl15release_storageEv+40)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #9 pc 0000f28f /system/lib/libutils.so (_ZN7android10VectorImpl7_shrinkEjj+438)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #10 pc 0000eff5 /system/lib/libutils.so (_ZN7android10VectorImpl13removeItemsAtEjj+30)�[0m
�[38;5;196m10-29 17:28:37.221 24098 24098 F DEBUG : #11 pc 0009c58d /system/lib/libstagefright.so (_ZN7android6ACodec10freeBufferEjj+200)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #12 pc 0009c45f /system/lib/libstagefright.so (_ZN7android6ACodec17freeBuffersOnPortEj+102)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #13 pc 000ab249 /system/lib/libstagefright.so (_ZN7android6ACodec20ExecutingToIdleState28changeStateIfWeOwnAllBuffersEv+60)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #14 pc 000ab171 /system/lib/libstagefright.so (_ZN7android6ACodec20ExecutingToIdleState10onOMXEventE13OMX_EVENTTYPEjj+32)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #15 pc 000a6217 /system/lib/libstagefright.so (_ZN7android6ACodec9BaseState12onOMXMessageERKNS_2spINS_8AMessageEEE+410)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #16 pc 00010b93 /system/lib/libstagefright_foundation.so (_ZN7android25AHierarchicalStateMachine13handleMessageERKNS_2spINS_8AMessageEEE+74)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #17 pc 000a5f83 /system/lib/libstagefright.so (_ZN7android6ACodec9BaseState16onOMXMessageListERKNS_2spINS_8AMessageEEE+106)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #18 pc 000a5c75 /system/lib/libstagefright.so (_ZN7android6ACodec9BaseState17onMessageReceivedERKNS_2spINS_8AMessageEEE+892)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #19 pc 00010b93 /system/lib/libstagefright_foundation.so (_ZN7android25AHierarchicalStateMachine13handleMessageERKNS_2spINS_8AMessageEEE+74)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #20 pc 000109f5 /system/lib/libstagefright_foundation.so (_ZN7android8AHandler14deliverMessageERKNS_2spINS_8AMessageEEE+24)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #21 pc 00012e5f /system/lib/libstagefright_foundation.so (_ZN7android8AMessage7deliverEv+62)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #22 pc 0001167d /system/lib/libstagefright_foundation.so (_ZN7android7ALooper4loopEv+480)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #23 pc 0000d4fb /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+274)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #24 pc 00048a89 /system/lib/libc.so (_ZL15__pthread_startPv+24)�[0m
�[38;5;196m10-29 17:28:37.222 24098 24098 F DEBUG : #25 pc 0001b34f /system/lib/libc.so (__start_thread+32)�[0m
�[38;5;196m10-29 20:13:44.565 1211 18473 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 18473 (recorder)�[0m
�[38;5;196m10-29 20:13:45.378 31884 31884 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***�[0m
�[38;5;196m10-29 20:13:45.378 31884 31884 F DEBUG : Build fingerprint: 'samsung/on5xeltejv/on5xelte:8.0.0/R16NW/G570FXXS3CTG1:user/release-keys'�[0m
�[38;5;196m10-29 20:13:45.379 31884 31884 F DEBUG : Revision: '4'�[0m
�[38;5;196m10-29 20:13:45.379 31884 31884 F DEBUG : ABI: 'arm'�[0m
�[38;5;196m10-29 20:13:45.379 31884 31884 F DEBUG : pid: 1211, tid: 18473, name: recorder >>> com.example <<<�[0m
�[38;5;196m10-29 20:13:45.379 31884 31884 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8�[0m
�[38;5;196m10-29 20:13:45.379 31884 31884 F DEBUG : Cause: null pointer dereference�[0m
�[38;5;196m10-29 20:13:45.379 31884 31884 F DEBUG : r0 00000000 r1 00000000 r2 ffffffff r3 00000000�[0m
�[38;5;196m10-29 20:13:45.379 31884 31884 F DEBUG : r4 ce493cd0 r5 cc122700 r6 cbf23a2c r7 cad75b20�[0m
�[38;5;196m10-29 20:13:45.379 31884 31884 F DEBUG : r8 c6056572 r9 c1aeb808 sl c1aeb7b8 fp c1aeb7c0�[0m
�[38;5;196m10-29 20:13:45.379 31884 31884 F DEBUG : ip f3c2dd58 sp c1aeb788 lr c613cb6d pc c612c476 cpsr 600f0030�[0m
�[38;5;196m10-29 20:13:45.396 31884 31884 F DEBUG : �[0m
�[38;5;196m10-29 20:13:45.396 31884 31884 F DEBUG : backtrace:�[0m
�[38;5;196m10-29 20:13:45.396 31884 31884 F DEBUG : #00 pc 001ce476 /data/app/com.example-z-GNiT6XDlvBs8NbZOfLNQ==/base.apk (offset 0x7d4000)�[0m
�[38;5;196m10-29 20:13:45.396 31884 31884 F DEBUG : #1 pc 001deb69 /data/app/com.example-z-GNiT6XDlvBs8NbZOfLNQ==/base.apk (offset 0x7d4000)�[0m
�[38;5;196m10-29 20:13:45.396 31884 31884 F DEBUG : #2 pc 001df4a9 /data/app/com.example-z-GNiT6XDlvBs8NbZOfLNQ==/base.apk (offset 0x7d4000)�[0m
�[38;5;196m10-29 20:13:45.397 31884 31884 F DEBUG : #3 pc 001dfb69 /data/app/com.example-z-GNiT6XDlvBs8NbZOfLNQ==/base.apk (offset 0x7d4000)�[0m
�[38;5;196m10-29 20:13:45.397 31884 31884 F DEBUG : #4 pc 004ae36d /data/app/com.example-z-GNiT6XDlvBs8NbZOfLNQ==/base.apk (offset 0x7d4000)�[0m
�[38;5;196m10-29 20:13:45.397 31884 31884 F DEBUG : #5 pc 004b2131 /data/app/com.example-z-GNiT6XDlvBs8NbZOfLNQ==/base.apk (offset 0x7d4000)�[0m
�[38;5;196m10-29 20:13:45.397 31884 31884 F DEBUG : #6 pc 004ae231 /data/app/com.example-z-GNiT6XDlvBs8NbZOfLNQ==/base.apk (offset 0x7d4000)�[0m
�[38;5;196m10-29 20:13:45.397 31884 31884 F DEBUG : #7 pc 0022c015 /data/app/com.example-z-GNiT6XDlvBs8NbZOfLNQ==/base.apk (offset 0x7d4000)�[0m
�[38;5;196m10-29 20:13:45.397 31884 31884 F DEBUG : #8 pc 00048a89 /system/lib/libc.so (_ZL15__pthread_startPv+24)�[0m
�[38;5;196m10-29 20:13:45.397 31884 31884 F DEBUG : #9 pc 0001b34f /system/lib/libc.so (__start_thread+32)�[0m
�[38;5;196m10-29 20:44:42.396 18317 19157 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x554 in tid 19157 (recorder)�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : Build fingerprint: 'samsung/on5xeltejv/on5xelte:8.0.0/R16NW/G570FXXS3CTG1:user/release-keys'�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : Revision: '4'�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : ABI: 'arm'�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : pid: 18317, tid: 19157, name: recorder >>> com.example <<<�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x554�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : Cause: null pointer dereference�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : r0 00000000 r1 00000000 r2 00000000 r3 c589d970�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : r4 cdc148a0 r5 c589d8b0 r6 0001503c r7 f3c34220�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : r8 0000008b r9 cbba2014 sl cbba2000 fp 00000000�[0m
�[38;5;196m10-29 20:44:42.846 19308 19308 F DEBUG : ip c71b9534 sp c589d6f8 lr c6c2106b pc c70e7b84 cpsr 600f0010�[0m
�[38;5;196m10-29 20:44:42.850 19308 19308 F DEBUG : �[0m
�[38;5;196m10-29 20:44:42.850 19308 19308 F DEBUG : backtrace:�[0m
�[38;5;196m10-29 20:44:42.850 19308 19308 F DEBUG : #00 pc 006a5b84 /data/app/com.example-z-GNiT6XDlvBs8NbZOfLNQ==/base.apk (offset 0x7d4000)�[0m

How to use compile_native_code=true

Dear @Piasy ,

android_gradle is a great repository for exploring WebRTC Android in Android Studio.
I tried with use compile_native_code=false, it works very well.

I want to explore by using native code (compile_native_code=true). But I can't build.

This is the error log.

Error configuring CMake server (/Users/xxx/Library/Android/sdk/cmake/3.10.2.4988404/bin).

Check for working C compiler: /Users/xxx/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang

Check for working C compiler: /Users/xxx/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- works

Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
....

See also "/Users/xxx/HackWebrtc/sdk/android_gradle/webrtc/.externalNativeBuild/cmake/debug/x86/CMakeFiles/CMakeOutput.log".

Please help me resolve it.
Also, Can I build libjingle_peerconnection_so.so from Android Studio?

Thanks

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x112c1000 in tid 29806 (worker_thread -)

Hi this issue is coming only if I have enabled startRecorder function
startRecorder(RtpTransceiver.RtpTransceiverDirection.RECV_ONLY.ordinal(), recordingPath)

Let me know if you need entire log file.

crash_dump32: obtaining output fd from tombstoned�[0m
�[38;5;40m10-30 15:13:09.145 2724 2724 I /system/bin/tombstoned: received crash request for pid 27947�[0m
�[38;5;40m10-30 15:13:09.152 31385 31385 I crash_dump32: performing dump of process 27947 (target tid = 29806)�[0m
�[38;5;196m10-30 15:13:09.152 31385 31385 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***�[0m
�[38;5;196m10-30 15:13:09.153 31385 31385 F DEBUG : Build fingerprint: 'samsung/on5xeltejv/on5xelte:8.0.0/R16NW/G570FXXS3CTG1:user/release-keys'�[0m
�[38;5;196m10-30 15:13:09.153 31385 31385 F DEBUG : Revision: '4'�[0m
�[38;5;196m10-30 15:13:09.153 31385 31385 F DEBUG : ABI: 'arm'�[0m
�[38;5;196m10-30 15:13:09.153 31385 31385 F DEBUG : pid: 27947, tid: 29806, name: worker_thread - >>> com.example <<<�[0m
�[38;5;196m10-30 15:13:09.153 31385 31385 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x112c1000�[0m
�[38;5;196m10-30 15:13:09.153 31385 31385 F DEBUG : r0 112c1000 r1 000000ca r2 ca0d9760 r3 00000001�[0m
�[38;5;196m10-30 15:13:09.153 31385 31385 F DEBUG : r4 c968fe70 r5 cb20e60f r6 00000000 r7 00000001�[0m
�[38;5;196m10-30 15:13:09.153 31385 31385 F DEBUG : r8 01c6e3cc r9 00000000 sl 00000000 fp f01e1220�[0m
�[38;5;196m10-30 15:13:09.153 31385 31385 F DEBUG : ip 00000000 sp c3ed55f8 lr c45257d9 pc c41b1a72 cpsr 200f0030�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : �[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : backtrace:�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #00 pc 001dea72 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #1 pc 005527d5 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #2 pc 005527a5 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #3 pc 00552795 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #4 pc 00553c73 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #5 pc 0056162f /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #6 pc 00562555 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #7 pc 00561cc7 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #8 pc 00510f61 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #9 pc 00512267 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #10 pc 00506945 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #11 pc 00506bab /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.170 31385 31385 F DEBUG : #12 pc 004f45b1 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.171 31385 31385 F DEBUG : #13 pc 00631d51 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.171 31385 31385 F DEBUG : #14 pc 00207a09 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.171 31385 31385 F DEBUG : #15 pc 0021d365 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.171 31385 31385 F DEBUG : #16 pc 0021c67b /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.171 31385 31385 F DEBUG : #17 pc 0021d643 /data/app/com.example-ob3g--1H-MevaRmwM721GA==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 15:13:09.171 31385 31385 F DEBUG : #18 pc 00048a89 /system/lib/libc.so (_ZL15__pthread_startPv+24)�[0m
�[38;5;196m10-30 15:13:09.171 31385 31385 F DEBUG : #19 pc 0001b34f /system/lib/libc.so (__start_thread+32)�[0m
�[38;5;166m10-30 15:13:09.225 2702 29847 W ExynosCamera3: [CAM_ID(1)][]-WARN(m_updateTimestamp[6412]):Timestamp is 59546873117001!, m_lastFrametime(59546730388693)�[0m
�[38;5;40m10-30 15:13:09.233 2623 20858 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(0)�[0m
�[38;5;166m10-30 15:13:09.256 2701 29929 W AudioFlinger: RecordThread: buffer overflow�[0m

VideoFileRenderer

I used the same implementation of the VideoFileRenderer you made, it worked but I am having the following issues:

  1. I have recorded a 3 seconds video file, its size is about 40 MegaBytes, is that normal, I tried to change the resolution of video captured so that its quality gets reduced, but this did not make any difference.
  2. I could not play the video except with external apps like MXPlayer (could not play it with the normal video player that comes embedded with the android) I wrote about that I found that it is of extension .y4m, I tried to convert it programmatically into mp4 or something playable by the native VideoView or even the video player that comes with the android but could not.
  3. This is not an issue: how to do the same with audio, i.e. what is the VideoFileRenderer for audio

I really appreciate your effort in webrtc, Thanks in advance.

安卓h265 黑屏

你好,h265是不是传输有问题,其他方式编解码,建立p2p连接后,接收端都能正常显示,但用h265会一直黑屏。手机支持h265编解码的。

低速网络下通话自动关闭

如题。

使用webrtc官方库做安卓p2p的通话,在网络上限速6KB/s,通信一段时间,大约10几秒后通话就自动关闭了,猜测是因为丢包率太大引起的,丢包率大约是10%左右。

想问下大佬webrtc底层有这个限制么,有点坑,这个速率其实是可以正常通话的

代码下载然后替换webrtc源码后,android端编译报错,只有ios端成功了,是不是只对ios端处理了,这个代码还不能用于安卓Android?

					ERROR Unresolved dependencies.

//media:rtc_audio_video(//build/toolchain/android:android_clang_arm)
needs //rtc_base/experiments:experimental_screenshare_settings(//build/toolchain/android:android_clang_arm)
//modules/video_coding:video_coding(//build/toolchain/android:android_clang_arm)
needs //api/video:video_adaptation(//build/toolchain/android:android_clang_arm)
//modules/video_coding:video_coding_utility(//build/toolchain/android:android_clang_arm)
needs //api/video:video_adaptation(//build/toolchain/android:android_clang_arm)
//video:video_stream_encoder_impl(//build/toolchain/android:android_clang_arm)
needs //api/video:video_adaptation(//build/toolchain/android:android_clang_arm)
//video/adaptation:video_adaptation(//build/toolchain/android:android_clang_arm)
needs //api/video:video_adaptation(//build/toolchain/android:android_clang_arm)

Traceback (most recent call last):
File "./tools_webrtc/android/build_aar.py", line 234, in
sys.exit(main())
File "./tools_webrtc/android/build_aar.py", line 230, in main
args.build_dir, args.extra_gn_switches, args.extra_ninja_switches)
File "./tools_webrtc/android/build_aar.py", line 210, in BuildAar
extra_ninja_switches)
File "./tools_webrtc/android/build_aar.py", line 166, in Build
_RunGN(gn_args_list)
File "./tools_webrtc/android/build_aar.py", line 93, in _RunGN
subprocess.check_call(cmd)
File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '/root/webrtc/src/third_party/depot_tools/gn.py', 'gen', '/tmp/tmps0s1jo/armeabi-v7a', '--args=arm_version=7 use_goma=false target_cpu="arm" is_component_build=false is_debug=false rtc_include_tests=false target_os="android"']' returned non-zero exit status 1

请教这是什么意思?

关于服务器连接不上的问题?

您好:按照您书上说的,编译了Mac的demo,并下载配置docker。
Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSUnderlyingError=0x600000c52a00 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=http://192.168.43.223:8080/join/11FE722DE93B4D398C66621463F73870?debug=loopback, NSErrorFailingURLKey=http://192.168.43.223:8080/join/11FE722DE93B4D398C66621463F73870?debug=loopback, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server.}
本机做服务器,本机运行Macdemo循环测试;报错;使用网络为手机热点

控制台:
docker -v
Docker version 19.03.12, build 48a66213fe
docker run --rm -p 8080:8080 -p 8089:8089 -p 3033:3033 -p 3478:3478 -p 3478:3478/udp -p59000-65000:59000-65000/udp -e PUBLIC_IP=192.168.43.223 -it piasy/apprtc-server
docker: Error response from daemon: Ports are not available: listen udp 0.0.0.0:59962: bind: address already in use.
ERRO[0001] error waiting for container: context canceled

关于iOS demo的生成?

您好,按照您书上说的,因为公司网络限制原因并不能下载源码;我通过镜像下咋的编了几次也编不过,可能中途下载的东西还有些问题;所以想问问如果我只下载depot_tools,和您现在github上的这个webrtc,能不能编译出iOSdemo啊?具体需要怎么实现呢?

Can not build framework_objc because of error "This frameworks value is wrong"

I am trying to build webrtc for iOS to use recording module but faced with error:

ERROR at //sdk/BUILD.gn:452:9: This frameworks value is wrong.All listed frameworks names must not include any
path component and have ".framework" extension.
libs += [
^--------------
See //sdk/BUILD.gn:435:5: whence it was called.
rtc_library("video_objc") {
^--------------------------
See //BUILD.gn:468:7: which caused the file to be included.
"sdk",
^----

this because of these lines in //sdk/BUILD.gn
if (rtc_use_recorder) {
libs += [
"z",
"bz2",
"iconv",
"//sdk/libs/ffmpeg/lib/iOS/libswresample.a",
"//sdk/libs/ffmpeg/lib/iOS/libavformat.a",
"//sdk/libs/ffmpeg/lib/iOS/libavcodec.a",
"//sdk/libs/ffmpeg/lib/iOS/libavutil.a",
]
}

Anyone knows how to fix this error?
Thank you very much!

关于iOSdemo编译,是否需要开发和账号或者付费账号?

个人没付费的账号可以用吗?网上有人说账号必须是付费的或者企业管理员权限的?我自己编译在只改了info.plist的情况下,编译不过
note: Compile and copy AppRTCMobile via ninja
ninja: Entering directory `.'
[1/38] STAMP obj/sdk/ios_framework_bundle.stamp
[2/38] STAMP obj/examples/apprtc_signaling.inputdeps.stamp
[3/38] STAMP obj/examples/AppRTCMobile_lib.inputdeps.stamp
[4/38] STAMP obj/examples/AppRTCMobile_arch_executable_sources.stamp
[5/38] ACTION //examples:AppRTCMobile_generate_info_plist(//build/toolchain/mac:ios_clang_arm64)
FAILED: gen/examples/AppRTCMobile_generate_info_plist.plist
python ../../build/config/mac/plist_util.py substitute -f=binary1 -o=gen/examples/AppRTCMobile_generate_info_plist.plist -t=gen/examples/AppRTCMobile_generate_info_plist_merged.plist -s=BUILD_MACHINE_OS_BUILD=19D76 -s=EXECUTABLE_NAME=AppRTCMobile -s=GCC_VERSION=com.apple.compilers.llvm.clang.1_0 -s=PRODUCT_NAME=AppRTCMobile -s=XCODE_BUILD=11C504 -s=XCODE_VERSION=1131 -s=IOS_DEPLOYMENT_TARGET=10.0 -s=IOS_BUNDLE_ID_PREFIX=org.chromium -s=IOS_PLATFORM_BUILD=17B102 -s=IOS_PLATFORM_NAME=iphoneos -s=IOS_PLATFORM_VERSION=13.2 -s=IOS_SDK_BUILD=17B102 -s=IOS_SDK_NAME=iphoneos13.2 -s=IOS_SUPPORTED_PLATFORM=iPhoneOS
Traceback (most recent call last):
File "../../build/config/mac/plist_util.py", line 226, in
sys.exit(Main())
File "../../build/config/mac/plist_util.py", line 222, in Main
args.func(args)
File "../../build/config/mac/plist_util.py", line 210, in _Execute
data = Interpolate(LoadPList(args.template), substitutions)
File "../../build/config/mac/plist_util.py", line 82, in Interpolate
return {k: Interpolate(v, substitutions) for k, v in value.iteritems()}
File "../../build/config/mac/plist_util.py", line 82, in
return {k: Interpolate(v, substitutions) for k, v in value.iteritems()}
File "../../build/config/mac/plist_util.py", line 86, in Interpolate
return InterpolateString(value, substitutions)
File "../../build/config/mac/plist_util.py", line 65, in InterpolateString
value = substitution_regexp.sub(repl, value)
File "../../build/config/mac/plist_util.py", line 52, in repl
raise SubstitutionError(variable)
main.SubstitutionError: SubstitutionError: MARKETING_VERSION
[6/38] LINK obj/examples/arm64/AppRTCMobile
ninja: build stopped: subcommand failed.
Command PhaseScriptExecution failed with a nonzero exit code

我编译的iOS,可是也不清楚他为什么会访问Mac的文件。

Android demo HandShake fail

您好,我按照书上说的跑了下android demo,服务器用的是docker上的,iOS端用该docker是可以runloop ,但是android demo 不行,会报错,错误信息handshake fail

編譯問題

git clone 後編譯不過, 我需要再做什麼處理?
gn gen out/Default 會噴一堆錯

謝謝!

HackRTC Build issue

Hi can you help me here i am trying to build aar from hckrtc but i am not able to do that.
Steps i performed

after completion of above all i run tools_webrtc/android/build_aar.py but it doesn’t do anything i keep waiting for 10 minutes
then i tried gn gen out/Debug --args='target_os="android" target_cpu="arm"' but it through error

gn.py: Could not find checkout in any parent of the current path.
This must be run inside a checkout.

Please can you help me here what i am doing wrong here, i assume this code will record remote audio and video tracks. please correct me if i am wrong.

Much Much Thanks in advance

Fatal signal 7 (SIGBUS), code 1, fault addr 0xca7b5fd7 in tid 14269 (worker_thread -)

Hi this issue is coming only if I have enabled startRecorder function
startRecorder(RtpTransceiver.RtpTransceiverDirection.RECV_ONLY.ordinal(), recordingPath)

Let me know if you need entire log file.
this happens at random interval of time.

[38;5;196m10-30 13:27:42.710 8434 10555 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 10555 (worker_thread -)�[0m
�[38;5;196m10-30 13:27:43.126 11264 11264 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***�[0m
�[38;5;196m10-30 13:27:43.127 11264 11264 F DEBUG : Build fingerprint: 'samsung/on5xeltejv/on5xelte:8.0.0/R16NW/G570FXXS3CTG1:user/release-keys'�[0m
�[38;5;196m10-30 13:27:43.127 11264 11264 F DEBUG : Revision: '4'�[0m
�[38;5;196m10-30 13:27:43.127 11264 11264 F DEBUG : ABI: 'arm'�[0m
�[38;5;196m10-30 13:27:43.127 11264 11264 F DEBUG : pid: 8434, tid: 10555, name: worker_thread - >>> com.example <<<�[0m
�[38;5;196m10-30 13:27:43.127 11264 11264 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------�[0m
�[38;5;196m10-30 13:27:43.127 11264 11264 F DEBUG : r0 00000000 r1 0000293b r2 00000006 r3 00000008�[0m
�[38;5;196m10-30 13:27:43.127 11264 11264 F DEBUG : r4 000020f2 r5 0000293b r6 bfed54e8 r7 0000010c�[0m
�[38;5;196m10-30 13:27:43.127 11264 11264 F DEBUG : r8 bfed5524 r9 c89553a0 sl c8c2a890 fp c8c2a8b0�[0m
�[38;5;196m10-30 13:27:43.127 11264 11264 F DEBUG : ip 00000000 sp bfed54d8 lr f01644d7 pc f019580c cpsr 200f0010�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : �[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : backtrace:�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #00 pc 0004b80c /system/lib/libc.so (tgkill+12)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #1 pc 0001a4d3 /system/lib/libc.so (abort+54)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #2 pc 00223161 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #3 pc 003e4d0b /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #4 pc 003e52b1 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #5 pc 003e56b7 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #6 pc 003fdea1 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #7 pc 00562575 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #8 pc 00561cc7 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #9 pc 00510f61 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.149 11264 11264 F DEBUG : #10 pc 00512267 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #11 pc 00506945 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #12 pc 00506bab /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #13 pc 004f45b1 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #14 pc 00631d51 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #15 pc 00207a09 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #16 pc 0021d365 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #17 pc 0021c67b /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #18 pc 0021d643 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #19 pc 00048a89 /system/lib/libc.so (_ZL15__pthread_startPv+24)�[0m
�[38;5;196m10-30 13:27:43.150 11264 11264 F DEBUG : #20 pc 0001b34f /system/lib/libc.so (__start_thread+32)�[0m
�[38;5;196m10-30 13:36:24.915 11284 14269 F libc : Fatal signal 7 (SIGBUS), code 1, fault addr 0xca7b5fd7 in tid 14269 (worker_thread -)�[0m
�[38;5;196m10-30 13:36:25.465 15667 15667 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***�[0m
�[38;5;196m10-30 13:36:25.465 15667 15667 F DEBUG : Build fingerprint: 'samsung/on5xeltejv/on5xelte:8.0.0/R16NW/G570FXXS3CTG1:user/release-keys'�[0m
�[38;5;196m10-30 13:36:25.465 15667 15667 F DEBUG : Revision: '4'�[0m
�[38;5;196m10-30 13:36:25.465 15667 15667 F DEBUG : ABI: 'arm'�[0m
�[38;5;196m10-30 13:36:25.465 15667 15667 F DEBUG : pid: 11284, tid: 14269, name: worker_thread - >>> com.example <<<�[0m
�[38;5;196m10-30 13:36:25.466 15667 15667 F DEBUG : signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0xca7b5fd7�[0m
�[38;5;196m10-30 13:36:25.466 15667 15667 F DEBUG : r0 c87a89a8 r1 ca7b5fd7 r2 caa98b30 r3 c87a89a8�[0m
�[38;5;196m10-30 13:36:25.466 15667 15667 F DEBUG : r4 c87a89a0 r5 ca7b5fd7 r6 c87a89a4 r7 00000000�[0m
�[38;5;196m10-30 13:36:25.466 15667 15667 F DEBUG : r8 e3464801 r9 800c521d sl c85a70c0 fp bd4f01d0�[0m
�[38;5;196m10-30 13:36:25.466 15667 15667 F DEBUG : ip c2340924 sp c1acb740 lr c1fb0c39 pc c1fb0ef4 cpsr 800f0030�[0m
�[38;5;196m10-30 13:36:25.482 15667 15667 F DEBUG : �[0m
�[38;5;196m10-30 13:36:25.482 15667 15667 F DEBUG : backtrace:�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #00 pc 003e7ef4 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #1 pc 003e7c35 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #2 pc 003e7a37 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #3 pc 003e79ef /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #4 pc 0056265d /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #5 pc 005065eb /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #6 pc 00506b8b /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #7 pc 005fcec3 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #8 pc 00207a09 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #9 pc 0021d365 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #10 pc 0021c67b /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #11 pc 0021d643 /data/app/com.example-TiKh_GElQR07QXL44h3dhw==/base.apk (offset 0x160e000)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #12 pc 00048a89 /system/lib/libc.so (_ZL15__pthread_startPv+24)�[0m
�[38;5;196m10-30 13:36:25.483 15667 15667 F DEBUG : #13 pc 0001b34f /system/lib/libc.so (__start_thread+32)�[0m

I can't get device directly after it connecting on linux

When I get a device connect signal by udev on linux, I refresh device list by webrtc, but I can't find the new devices on results.

Then, I sleep this thread for 10ms after the udev signal, this sometimes works well, but not a good solution.

crash when run in android4.4.2

E/AndroidRuntime(10610): Process: org.appspot.apprtc, PID: 10610
E/AndroidRuntime(10610): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.appspot.apprtc/org.appspot.apprtc.ConnectActivity}: java.lang.ClassNotFoundException: Didn't find class "org.appspot.apprtc.ConnectActivity" on path: DexPathList[[zip file "/data/app/org.appspot.apprtc-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.appspot.apprtc-1, /vendor/lib, /system/lib]]
E/AndroidRuntime(10610): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
E/AndroidRuntime(10610): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime(10610): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime(10610): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime(10610): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(10610): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(10610): at android.app.ActivityThread.main(ActivityThread.java:5030)
E/AndroidRuntime(10610): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(10610): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(10610): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime(10610): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime(10610): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(10610): Caused by: java.lang.ClassNotFoundException: Didn't find class "org.appspot.apprtc.ConnectActivity" on path: DexPathList[[zip file "/data/app/org.appspot.apprtc-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.appspot.apprtc-1, /vendor/lib, /system/lib]]
E/AndroidRuntime(10610): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime(10610): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime(10610): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime(10610): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
E/AndroidRuntime(10610): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
E/AndroidRuntime(10610): ... 11 more
W/ActivityManager( 1959): Force finishing activity org.appspot.apprtc/.ConnectActivity
I/Process (10610): Sending signal. PID: 10610 SIG: 9
I/ActivityManager( 1959): Process org.appspot.apprtc (pid 10610) has died.

WebRTC h264 硬體編碼

您好,我買了WebRTC Navtive實戰這本書,在書上,看到有關視頻數據流和支援H264的教學,想請問有辦法用硬體編碼(像ffmpeg h264_nvenc)去編碼webRTC上傳到h264_encode_imp(open_h264)的VideoFrameㄇ?
謝謝!

作業系統 : Ubuntu 20.04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.