Index: webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m |
diff --git a/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m b/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m |
index f20c490682a3410e8894ae07b8f6ef263faf8f00..2a77cc3f372c4a8593087c771a0f3adc681b00cf 100644 |
--- a/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m |
+++ b/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m |
@@ -49,4 +49,13 @@ static NSString const *kRTCICECandidateSdpKey = @"candidate"; |
return data; |
} |
+- (NSDictionary *)JSONDictionary{ |
+ NSDictionary *json = @{ |
+ kRTCICECandidateMLineIndexKey : @(self.sdpMLineIndex), |
+ kRTCICECandidateMidKey : self.sdpMid, |
+ kRTCICECandidateSdpKey : self.sdp |
+ }; |
+ return json; |
+} |
+ |
@end |