|
@@ -194,6 +194,9 @@ public class MagicPeerConnectionWrapper {
|
|
|
if (iceConnectionState.equals(PeerConnection.IceConnectionState.CONNECTED) && hasInitiated) {
|
|
|
sendChannelData(new DataChannelMessage("videoOn"));
|
|
|
sendChannelData(new DataChannelMessage("audioOn"));
|
|
|
+ } else if (iceConnectionState.equals(PeerConnection.IceConnectionState.FAILED)) {
|
|
|
+ EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
|
|
+ .CLOSE_PEER, sessionId));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -282,9 +285,9 @@ public class MagicPeerConnectionWrapper {
|
|
|
sessionDescription.type,
|
|
|
sessionDescriptionStringWithPreferredCodec);
|
|
|
|
|
|
- EventBus.getDefault().post(new SessionDescriptionSendEvent(sessionDescriptionWithPreferredCodec, sessionId,
|
|
|
+ EventBus.getDefault().post(new SessionDescriptionSendEvent(sessionDescription, sessionId,
|
|
|
sessionDescription.type.canonicalForm().toLowerCase(), null));
|
|
|
- peerConnection.setLocalDescription(magicSdpObserver, sessionDescriptionWithPreferredCodec);
|
|
|
+ peerConnection.setLocalDescription(magicSdpObserver, sessionDescription);
|
|
|
}
|
|
|
|
|
|
@Override
|