Index: webrtc/api/objc/RTCDataChannelConfiguration.mm |
diff --git a/webrtc/api/objc/RTCDataChannelConfiguration.mm b/webrtc/api/objc/RTCDataChannelConfiguration.mm |
index 77de4eeb6790741bdda5a675e40fadc8e0712bb2..4a1dcb061c84ddb4ec205080ef8e166d7005ad26 100644 |
--- a/webrtc/api/objc/RTCDataChannelConfiguration.mm |
+++ b/webrtc/api/objc/RTCDataChannelConfiguration.mm |
@@ -25,6 +25,14 @@ |
_nativeDataChannelInit.ordered = isOrdered; |
} |
+- (NSInteger)maxRetransmitTimeMs { |
+ return self.maxPacketLifeTime; |
+} |
+ |
+- (void)setMaxRetransmitTimeMs:(NSInteger)maxRetransmitTimeMs { |
+ self.maxPacketLifeTime = maxRetransmitTimeMs; |
+} |
+ |
- (int)maxPacketLifeTime { |
return _nativeDataChannelInit.maxRetransmitTime; |
} |
@@ -58,11 +66,19 @@ |
} |
- (int)streamId { |
- return _nativeDataChannelInit.id; |
+ return self.channelId; |
} |
- (void)setStreamId:(int)streamId { |
- _nativeDataChannelInit.id = streamId; |
+ self.channelId = streamId; |
+} |
+ |
+- (int)channelId { |
+ return _nativeDataChannelInit.id; |
+} |
+ |
+- (void)setChannelId:(int)channelId { |
+ _nativeDataChannelInit.id = channelId; |
} |
-@end |
+@end |