Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Audio for 2 Android devices sharing same Room SessionID #46

Open
aaronvargas opened this issue Feb 7, 2015 · 7 comments
Open

No Audio for 2 Android devices sharing same Room SessionID #46

aaronvargas opened this issue Feb 7, 2015 · 7 comments

Comments

@aaronvargas
Copy link

Overview:
Using the NativeCall app, the audio (and video) works correctly when connecting 1 Android device and a browser client at http://demo.openwebrtc.io:38080. Connecting 2 Android devices using NativeCall (and no browser client) results in shared video, but no audio.

Expected Behavior:
2 Android NativeCall apps should be able to join the same sessionID and share audio and video.

Actual Behavior:
2 Android apps in above scenario can only share video.

Environment:
Browser - Chrome on mac (Yosemite)
Nexus 5 - 5.0.1
Nexus 7 (2013) - 5.0.2

Other Notes:
I've connected 2 Android native clients (independent of the demo app and NativeCall) and got the video working. However audio didn't. As a sanity check I tried the outlined case above and found it didn't work in the demo app either.

When the audio IS (yes is) Working I see these errors in the log
02-07 10:36:11.098 16772-16960/com.ericsson.research.owr.examples.nativecall I/gst_log﹕ 0xa31536c0 ERROR default /Users/aaron/openwebrtc/scripts/dependencies/gst-plugins-base/gst-libs/gst/audio/audio-info.c:267:gst_audio_info_from_caps: no layout given
02-07 10:36:11.198 16772-16792/com.ericsson.research.owr.examples.nativecall E/g_printerr﹕ Error in element audio-source.
02-07 10:36:11.198 16772-16792/com.ericsson.research.owr.examples.nativecall E/g_printerr﹕ Debugging info: /Users/aaron/openwebrtc/scripts/dependencies/gstreamer/libs/gst/base/gstbasesrc.c(2943): gst_base_src_loop (): /GstPipeline:local-audio-capture-source-bin-1/GstOpenSLESSrc:audio-source:
streaming task paused, reason not-negotiated (-4)
02-07 10:36:11.834 16772-16792/com.ericsson.research.owr.examples.nativecall W/MediaController﹕ remote audio: com.ericsson.research.owr.RemoteMediaSource@33dfe211
02-07 10:36:11.966 16772-16988/com.ericsson.research.owr.examples.nativecall W/AudioTrack﹕ AUDIO_OUTPUT_FLAG_FAST denied by client
02-07 10:36:11.985 184-830/? D/audio_hw_primary﹕ out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=4
02-07 10:36:12.005 184-750/? D/audio_hw_primary﹕ select_devices: out_snd_device(5: headphones) in_snd_device(0: none)
02-07 10:36:12.005 184-750/? D/msm8974_platform﹕ platform_send_audio_calibration: sending audio calibration for snd_device(5) acdb_id(10)
02-07 10:36:12.005 184-750/? D/audio_hw_primary﹕ enable_snd_device: snd_device(5: headphones)
02-07 10:36:12.011 184-750/? D/audio_hw_primary﹕ enable_audio_route: apply and update mixer path: low-latency-playback

These errors are also present when audio is not working...

@stefanalund
Copy link
Contributor

@Rugvip any thoughts?

@superdump
Copy link
Contributor

Just to check: are you running the two instances of the all on two separate devices?

@aaronvargas
Copy link
Author

Yes, I run one instance of NativeCall on a Nexus 5 and one on a Nexus 7. I then join the same sessionId (room) and initiate the call from either side. (there is often a delay at this point...) I then get 2-way video, but no audio. @superdump, Does it work for you?

@edmandiesamonte
Copy link

Any update on this? I'm also getting the same error. Tried the latest NativeCall sample app.
My device is Sony Xperia Z3 running on Android Lollipop 5.1. I used the demo website through Chrome on Mac. The video and audio are coming perfectly from Chrome on Mac to Android but video only if it's the other way around.

@Rugvip
Copy link
Contributor

Rugvip commented Apr 13, 2015

This issue is fixed by EricssonResearch/cerbero@20a368b and EricssonResearch/openwebrtc@6d72e0a
If you fetch the latest cerbero master and rebuild, things should hopefully work.

@edmandiesamonte
Copy link

I tried it with the latest cerbero master with that same device, Sony Xperia Z3 running on Lollipop 5.1. I also updated the openwebrtc-examples. Result:

The gstreamer error no longer exists but the following log was still there:

04-15 14:57:43.547    3239-3239/com.ericsson.research.owr.examples.nativecall I/SimpleStreamSet﹕ audio stream mode set: SEND_RECEIVE
04-15 14:57:43.571    3239-5482/com.ericsson.research.owr.examples.nativecall W/AudioRecord﹕ AUDIO_INPUT_FLAG_FAST denied by client
04-15 14:57:43.839    3239-3239/com.ericsson.research.owr.examples.nativecall V/NativeCall﹕ candidate: {"sdpMLineIndex":0,"sdpMid":"audio","candidate":"candidate:3087517168 1 udp 2122260223 192.168.252.46 57730 typ host generation 0","candidateDescription":{"foundation":"3087517168","componentId":1,"transport":"UDP","priority":2122260223,"address":"192.168.252.46","port":57730,"type":"host"}}
04-15 14:57:43.890    3239-5502/com.ericsson.research.owr.examples.nativecall D/AudioTrack﹕ TrackOffload: AudioTrack Offload disabled by property, returning false
04-15 14:57:43.895    3239-5502/com.ericsson.research.owr.examples.nativecall W/AudioTrack﹕ AUDIO_OUTPUT_FLAG_FAST denied by client

@DmitrySkripunov
Copy link

DmitrySkripunov commented Feb 14, 2017

Hello!
I have some issue with audio
to console write:
W/AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client at all.... I don't know what to doing
I need any ideas, please)

And yes library version 0.1.0
compile 'io.openwebrtc:openwebrtc-android-sdk:0.1.0'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants