File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 64
64
- (void )terminateCall ;
65
65
- (void )enableTrickleICE ;
66
66
67
- - (void )handleOfferReceived : (NSString *)offer ;
68
- - (void )handleAnswerReceived : (NSString *)answer ;
67
+ - (void )handleOfferReceived : (NSDictionary *)offer ;
68
+ - (void )handleAnswerReceived : (NSDictionary *)answer ;
69
69
- (void )handleRemoteCandidateReceived : (NSDictionary *)candidate ;
70
70
71
71
- (void )setVideoCaptureSourceByName : (NSString *)name ;
Original file line number Diff line number Diff line change @@ -211,10 +211,13 @@ - (void)terminateCall
211
211
reset ();
212
212
}
213
213
214
- - (void )handleAnswerReceived : (NSString *)answer
214
+ - (void )handleAnswerReceived : (NSDictionary *)answer
215
215
{
216
- NSDictionary *sdp = [OpenWebRTCUtils parseSDPFromString: answer];
217
- NSLog (@" Parsed Answer SDP: %@ " , sdp);
216
+ NSDictionary *sdp = answer[@" sessionDescription" ];
217
+ if (!sdp)
218
+ sdp = [OpenWebRTCUtils parseSDPFromString: answer[@" sdp" ]];
219
+
220
+ NSLog (@" Answer SDP: %@ " , sdp);
218
221
219
222
const gchar *mtype;
220
223
OwrMediaType media_type = OWR_MEDIA_TYPE_UNKNOWN;
@@ -353,13 +356,16 @@ - (NSMutableArray *)remoteCandidatesCache
353
356
return _remoteCandidatesCache;
354
357
}
355
358
356
- - (void )handleOfferReceived : (NSString *)offer
359
+ - (void )handleOfferReceived : (NSDictionary *)offer
357
360
{
358
361
is_answering = TRUE ;
359
362
is_offering = FALSE ;
360
363
361
- NSDictionary *sdp = [OpenWebRTCUtils parseSDPFromString: offer];
362
- NSLog (@" Parsed Offer SDP: %@ " , sdp);
364
+ NSDictionary *sdp = offer[@" sessionDescription" ];
365
+ if (!sdp)
366
+ sdp = [OpenWebRTCUtils parseSDPFromString: offer[@" sdp" ]];
367
+
368
+ NSLog (@" Offer SDP: %@ " , sdp);
363
369
364
370
const gchar *mtype;
365
371
OwrMediaType media_type = OWR_MEDIA_TYPE_UNKNOWN;
You can’t perform that action at this time.
0 commit comments