Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(764)

Unified Diff: webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.m

Issue 1690313002: Update iOS AppRTCDemo to use the updated Objective-C API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update against master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.m
diff --git a/webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.m b/webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.m
index 90cadc6ad1e5f99d5f5c3bc17b5fe7e3d302dc3d..0e753e845b9aa79e645d3e81f6563649b5f61d96 100644
--- a/webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.m
+++ b/webrtc/examples/objc/AppRTCDemo/ARDWebSocketChannel.m
@@ -10,7 +10,7 @@
#import "ARDWebSocketChannel.h"
-#import "RTCLogging.h"
+#import "webrtc/base/objc/RTCLogging.h"
#import "SRWebSocket.h"
#import "ARDSignalingMessage.h"
@@ -218,11 +218,11 @@ static NSString const *kARDWSSMessagePayloadKey = @"msg";
ARDSessionDescriptionMessage *sdpMessage =
(ARDSessionDescriptionMessage *)message;
RTCSessionDescription *description = sdpMessage.sessionDescription;
- NSString *dsc = description.description;
+ NSString *dsc = description.sdp;
dsc = [dsc stringByReplacingOccurrencesOfString:@"offer"
withString:@"answer"];
RTCSessionDescription *answerDescription =
- [[RTCSessionDescription alloc] initWithType:@"answer" sdp:dsc];
+ [[RTCSessionDescription alloc] initWithType:RTCSdpTypeAnswer sdp:dsc];
ARDSignalingMessage *answer =
[[ARDSessionDescriptionMessage alloc]
initWithDescription:answerDescription];
« no previous file with comments | « webrtc/examples/objc/AppRTCDemo/ARDTURNClient.h ('k') | webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698