Im building an android app that should be able to communicate audio with another client built on libjingle.
The first thing im trying to do is setup a call between "the other" client and my android app. We use XMPP as a signaling service.
So after this :
peerConnectiobObj.setRemoteDescription(sdp)
I get the successcallback (so I guess the remote description is fine?)
And then according to what I think I have figured out its time for me to create my answer.
@Override
public void onCreateSuccess(SessionDescription sessionDescription)
{
peerConnectiobObj.createAnswer(theSDPobserver, MediaConstraints);
}
BUT I end up in the error callback :(
@Override
public void onSetFailure(String s)
{
}
Where s tells me
Failed to set local answer sdp: Session error code: ERROR_CONTENT. Session error description: Failed to setup SRTP filter..
Im feeling lost I dont even know what that means. If anyone could point me in the right direction I would be a happier developer.
Actually I general im feeling a bit lost when it comes to this.. :)
EDIT:
This is what my local SDP looks like when I get to OnSetFailure(string s)
v=0
o=- 8493684831531207397 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS
m=audio 1 RTP/SAVPF 0
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:kOkIsQjMk2B0a9U4
a=ice-pwd:tofHiOCYA8vxc6RhGijvAJhD
a=mid:audio
a=recvonly
a=rtcp-mux
a=crypto:0 AES_CM_128_HMAC_SHA1_80 inline:CuhhoTjgAvZWACKU0enZ6JkBOOtm1XcILVU1kgha
a=rtpmap:0 PCMU/8000
EDIT:
I updated my libjingle.jar and .so, recompiled with the current trunk.
Not it can successfully createAnswer()
But when I do
setLocalDescription()
I get the public void onSetFailure(String s) CB
This is my local SDP when I get to that state :
v=0
o=- 5609339699751423572 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS fAy0FNrYIDVfeRwX5X0IK5TOCVTNJOXt4Cdb
m=audio 1 RTP/SAVPF 0
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:HvkTUFYLQHFQYV1a
a=ice-pwd:OtBToOqg56IROXkI1zpljupo
a=mid:audio
a=sendrecv
a=rtcp-mux
a=crypto:0 AES_CM_128_HMAC_SHA1_80 inline:hMJUMLPuM1zYuIaUCEjr46aMsMwfc+MHjBM6PDES
a=rtpmap:0 PCMU/8000
a=ssrc:4099416672 cname:DO5g7daVh6dqHm/E
a=ssrc:4099416672 msid:fAy0FNrYIDVfeRwX5X0IK5TOCVTNJOXt4Cdb fAy0FNrYIDVfeRwX5X0IK5TOCVTNJOXt4Cdb00
a=ssrc:4099416672 mslabel:fAy0FNrYIDVfeRwX5X0IK5TOCVTNJOXt4Cdb
a=ssrc:4099416672 label:fAy0FNrYIDVfeRwX5X0IK5TOCVTNJOXt4Cdb00
Does anyone know whats wrong with it ? :(
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…