Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

Noise in Androiod after subscribe remoteStream

lee__wenyuan
Beginner
454 Views

Hi, I got Noise in one of my android device after subscribe remoteStream, even if I did pulish stream, and the other device in the some room is disable local audio.

Here is my log during subscribe remoteStream:

11-23 20:05:08.173 2049-2397/system_process I/DynamicPManagerService: Current Scense:normal
11-23 20:05:08.174 9933-17369/com.sona.appmeeting D/IntelWebRtc: My client Id: gX0Zph60WsKpd_ymAAHM
11-23 20:05:08.182 9933-17251/com.sona.appmeeting I/SoftAAC2: Reconfiguring decoder: 0->48000 Hz, 0->2 channels
11-23 20:05:08.190 9933-17369/com.sona.appmeeting D/IntelWebRtc: onStreamAdded: streamId = 5a169564d35f180030ef015b-common, from 
11-23 20:05:08.191 9933-17369/com.sona.appmeeting D/IntelWebRtc: onStreamAdded: streamId = 440688006927572030, from BzcdojZYcsavnJRwAAG3
11-23 20:05:08.223 9933-17231/com.sona.appmeeting D/sona.IntelWebRtc.java: line:1028_handleMessage__flow remoteStream instanceof RemoteMixedStream
11-23 20:05:08.224 9933-17231/com.sona.appmeeting W/org.webrtc.Logging: WebRtcAudioTrack: setSpeakerMute(true)
11-23 20:05:08.226 9933-17369/com.sona.appmeeting D/WooGeen-SocketClient: reconnection ticket will be refreshed in 600s
11-23 20:05:08.227 9933-17231/com.sona.appmeeting D/WooGeen-ConferenceClient: Subscribe 5a169564d35f180030ef015b-common
11-23 20:05:08.284 1643-1676/? I/[Gralloc]: ion_alloc from ion_client:19 via heap type DMA(mask:16) for 92928 Bytes uncached buffer successfully, usage = 0x00000f02
11-23 20:05:08.287 1643-2043/? I/[Gralloc]: ion_alloc from ion_client:19 via heap type DMA(mask:16) for 92928 Bytes uncached buffer successfully, usage = 0x00000f02
11-23 20:05:08.288 1643-2043/? I/[Gralloc]: ion_alloc from ion_client:19 via heap type DMA(mask:16) for 92928 Bytes uncached buffer successfully, usage = 0x00000f02
11-23 20:05:08.288 1643-2043/? I/[Gralloc]: ion_alloc from ion_client:19 via heap type DMA(mask:16) for 92928 Bytes uncached buffer successfully, usage = 0x00000f02
11-23 20:05:08.349 9933-17037/com.sona.appmeeting D/WooGeen-PCFactory: Create PeerConnection.
11-23 20:05:08.411 9933-10286/com.sona.appmeeting V/RenderScript: 0xce582000 Launching thread(s), CPUs 4
11-23 20:05:08.527 9933-17396/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: Create Offer
11-23 20:05:08.543 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: SDPObserver ---- onCreateSuccess
11-23 20:05:08.551 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: Found h264 rtpmap 125, prefer at m=video 9 UDP/TLS/RTP/SAVPF 96 98 100 127 125 124 97 99 101 104 106
11-23 20:05:08.551 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: Change media description: m=video 9 UDP/TLS/RTP/SAVPF 125 96 98 100 127 124 97 99 101 104 106
11-23 20:05:08.604 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: PC Observer ---- onSignalingChange: HAVE_LOCAL_OFFER
11-23 20:05:08.609 9933-17040/com.sona.appmeeting I/org.webrtc.Logging: NetworkMonitor: Start monitoring from native observer -461307200
11-23 20:05:08.641 2049-4437/system_process D/ConnectivityService: requestNetwork for Request from uid/pid:1000/9933 for NetworkRequest [ id=74, legacyType=5, [ Transports: CELLULAR Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
11-23 20:05:08.648 2049-3331/system_process D/WIFI: got request NetworkRequest [ id=74, legacyType=5, [ Transports: CELLULAR Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
11-23 20:05:08.649 2049-3331/system_process D/WIFI_UT: got request NetworkRequest [ id=74, legacyType=5, [ Transports: CELLULAR Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
11-23 20:05:08.649 2049-3610/system_process D/Ethernet: got request NetworkRequest [ id=74, legacyType=5, [ Transports: CELLULAR Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
11-23 20:05:08.665 2049-25202/system_process D/ConnectivityService: listenForNetwork for Listen from uid/pid:1000/9933 for NetworkRequest [ id=75, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
11-23 20:05:08.692 9933-17445/com.sona.appmeeting I/org.webrtc.Logging: NetworkMonitorAutoDetect: Network becomes available: 100
11-23 20:05:08.711 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: SDPObserver ---- onSetSuccess
11-23 20:05:08.729 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: PC Observer ---- onSignalingChange: STABLE
11-23 20:05:08.733 9933-17041/com.sona.appmeeting D/AudioTrackJni: InitPlayout@[tid=17041]
11-23 20:05:08.733 9933-17041/com.sona.appmeeting I/org.webrtc.Logging: WebRtcAudioTrack: initPlayout(sampleRate=44100, channels=1)
11-23 20:05:08.733 9933-17041/com.sona.appmeeting I/org.webrtc.Logging: WebRtcAudioTrack: byteBuffer.capacity: 882
11-23 20:05:08.733 9933-17041/com.sona.appmeeting D/AudioTrackJni: OnCacheDirectBufferAddress
11-23 20:05:08.734 9933-17041/com.sona.appmeeting D/AudioTrackJni: direct buffer capacity: 882
11-23 20:05:08.734 9933-17041/com.sona.appmeeting D/AudioTrackJni: frames_per_buffer: 441
11-23 20:05:08.735 9933-17041/com.sona.appmeeting I/org.webrtc.Logging: WebRtcAudioTrack: AudioTrack.getMinBufferSize: 6156
11-23 20:05:08.745 9933-17041/com.sona.appmeeting I/org.webrtc.Logging: WebRtcAudioTrack: AudioTrack: session ID: 10, channels: 1, sample rate: 44100, max gain: 1.0
11-23 20:05:08.745 9933-17041/com.sona.appmeeting I/org.webrtc.Logging: WebRtcAudioTrack: AudioTrack: buffer size in frames: 3078
11-23 20:05:08.745 9933-17041/com.sona.appmeeting D/AudioManager: IsCommunicationModeEnabled()
11-23 20:05:08.746 9933-17041/com.sona.appmeeting D/AudioTrackJni: StartPlayout@[tid=17041]
11-23 20:05:08.746 9933-17041/com.sona.appmeeting I/org.webrtc.Logging: WebRtcAudioTrack: startPlayout
11-23 20:05:08.748 9933-17463/com.sona.appmeeting I/org.webrtc.Logging: WebRtcAudioTrack: AudioTrackThread@[name=AudioTrackJavaThread, id=1406]
11-23 20:05:08.763 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceConnectionChange:CHECKING
11-23 20:05:08.770 2049-2049/system_process D/BackgroundManagerService: reload bgmusic list: [com.sona.appmeeting]
11-23 20:05:08.771 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onAddTrack
11-23 20:05:08.771 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onAddTrack
11-23 20:05:08.772 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: PC Observer ---- onAddStream
11-23 20:05:08.772 9933-17042/com.sona.appmeeting D/WooGeen-ConferencePeerConnectionChannel: audio1  video1
11-23 20:05:08.773 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceGatheringChange:GATHERING
11-23 20:05:08.776 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceCandidate
11-23 20:05:08.776 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceCandidate
11-23 20:05:08.776 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceCandidate
11-23 20:05:08.776 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceCandidate
11-23 20:05:08.776 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceCandidate
11-23 20:05:08.776 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceCandidate
11-23 20:05:08.777 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: SDPObserver ---- onSetSuccess
11-23 20:05:08.783 10090-10344/? V/audio_hw_primary: out_set_parameters: routing=2
11-23 20:05:08.783 10090-10344/? V/audio_hw_primary: out_set_parameters, line: 1568
11-23 20:05:08.783 10090-10344/? V/audio_hw_primary: >>>>>>>> adev->mode:3,adev->out_device is: 2, val is : 2
11-23 20:05:08.785 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceGatheringChange:COMPLETE
11-23 20:05:08.795 10090-10344/? V/audio_hw_primary: start_output_stream, line: 1230
11-23 20:05:08.796 10090-10344/? D/audio_hw_primary: >>>>>> select_device
11-23 20:05:08.796 10090-10344/? V/audio_hw_primary: active_output, ****LINE:1050,FUNC:select_device, adev->out_device:2
11-23 20:05:08.796 10090-10344/? V/audio_hw_primary: ****LINE:1056,FUNC:select_device, headset_on:0, headphone_on:0, speaker_on:2, earpiece_on:0, bt_on:0
11-23 20:05:08.796 10090-10344/? V/audio_hw_primary: ****LINE:1083,FUNC:select_device, output_device_id:6
11-23 20:05:08.796 10090-10344/? V/audio_hw_primary: select_device, line: 1104
11-23 20:05:08.796 10090-10344/? V/audio_hw_primary: start_output_stream: card:0, port:0, rate:44100, period_count:3, period_size:1024
11-23 20:05:08.797 10090-10344/? V/audio_hw_primary: do not use out resampler
11-23 20:05:08.868 9933-17042/com.sona.appmeeting D/WooGeen-PeerConnectionChannel: onIceConnectionChange:CONNECTED
11-23 20:05:08.868 9933-17042/com.sona.appmeeting D/WooGeen-ConferencePeerConnectionChannel: Change State=CONNECTED

//end of log

Thanks!

0 Kudos
6 Replies
YanbinZ_Intel
Employee
454 Views

Could you please provide the problem detail android phone devices information and detail reproduce steps ? 

0 Kudos
lee__wenyuan
Beginner
454 Views

Yanbin Z. (Intel) wrote:

Could you please provide the problem detail android phone devices information and detail reproduce steps ? 

Greetings Yanbin Z,

I use two android device, device A is my custom device with the sound card info below:

root@tulip-d1:/ # cat /proc/asound/pcm
00-00: SUNXI-CODEC codec-aif1-0 :  : playback 1 : capture 1
00-01: bb Voice codec-aif2-1 :  : playback 1 : capture 1
00-02: bb-bt-clk codec-aif2-2 :  : playback 1 : capture 1
00-03: bt Voice codec-aif3-3 :  : playback 1 : capture 1

And device B is a mobile phone make by Huawei.

In my test, two device joined in the same room. Device A just subsribe remote stream, and didnot publish stream.And device B publish local stream, device A got Noise all the time even if device B is disable local audio.

By the way, I have played music or other voice call on device A, it didn't show noise.

Thank you!

0 Kudos
lee__wenyuan
Beginner
454 Views

In the v 3.5 SDK, I can't get raw audio data (uncompressed PCM audio data) of a remote media stream, if I can do that, I will save the audio data for some more detail analyze to check whether is the data is error or my media decoder is error.

0 Kudos
lee__wenyuan
Beginner
454 Views

Hi,how's the progress?

Thanks!

0 Kudos
He_Z_Intel
Employee
454 Views

Hi Lee

Did device A subscribe a RemoteMixedStream or a RemoteCameraStream published by device B?

How did you disable device B local audio?  And were there any other streams published in the same room?

0 Kudos
lee__wenyuan
Beginner
454 Views

Hank Zhang (Intel) wrote:

Hi Lee

Did device A subscribe a RemoteMixedStream or a RemoteCameraStream published by device B?

How did you disable device B local audio?  And were there any other streams published in the same room?

Hi Hank Zhang

Device A just subscribe a RemoteMixedStream. I used the api "LocalCameraStream.disableAudio()" on device B. And there are just two device in the meeting. 

0 Kudos
Reply