lukeweber / webrtc-jingle-client

Webrtc audio + jingle protocol brought to IOS and Android.
https://groups.google.com/forum/?fromgroups#!forum/webrtc-jingle
BSD 3-Clause "New" or "Revised" License
334 stars 137 forks source link

iOS Call Example No Audio Out #88

Closed seankovacs closed 11 years ago

seankovacs commented 11 years ago

Built the latest from the repo but noticed that the audio output doesn't seem to work. The input is fine (the other end can hear me), but I can't hear them. I'll start digging into it. Same results in simulator and device.

seankovacs commented 11 years ago

I did notice in the logs this: Warning(webrtcvoiceengine.cc:1127): webrtc: IncomingRTPPacket received invalid payloadtype Warning(webrtcvoiceengine.cc:1127): webrtc: Channel::IncomingRTPPacket() RTP packet is invalid (error=10034)

Wondering if this means the incoming audio packets are being dropped?

seankovacs commented 11 years ago

This is a Google Voice/Gmail call btw...if it matters.

seankovacs commented 11 years ago

I see the available codecs webrtc is saying is this: Setting receive voice codecs: ISAC/16000/1 (103) CN/16000/1 (105) telephone-event/8000/1 (126)

And it's trying to set it to this: Session:173486438 Old state:STATE_RECEIVEDINITIATE_ACK New state:STATE_RECEIVEDACCEPT Type:urn:xmpp:jingle:apps:rtp:1 Transport:http://www.google.com/transport/p2p Setting remote voice description Selected voice codec PCMU/8000/1 (0), bitrate=64000 SRTP reset to init state Setting voice channel options: AudioOptions {}

So the codec Google wants to use is not available, PCMU? Maybe...could coincide with the invalid payloadtype packets above?

seankovacs commented 11 years ago

Problem solved - I just uncommented the PCMU in the kCodecPrefs array in the webrtcvoiceengine.cc file.