NSDictionary *mandatoryConstraints = nil;
NSDictionary *optionalConstraints = @{
@"internalSctpDataChannels" : @"true",
@"DtlsSrtpKeyAgreement" : @"true"};
RTCMediaConstraints* constraints = [[RTCMediaConstraints alloc] initWithMandatoryConstraints:mandatoryConstraints
optionalConstraints:optionalConstraints];
Generating sdp works without errors:RTCDataChannelConfiguration *dataConfiguration = [[RTCDataChannelConfiguration alloc] init];
dataConfiguration.channelId = 1;
RTCSessionDescription:
offer
v=0
o=- 8070301700869088933 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic: WMS
m=application 9 DTLS/SCTP 5000
c=IN IP4 0.0.0.0
a=ice-ufrag:X7ry
a=ice-pwd:evDTtIxBdjsY6LdxbbWmgkDI
a=ice-options:renomination
a=fingerprint:sha-256 5E:67:C9:8E:67:0E:7A:CE:A7:07:13:17:4B:B2:46:BB:93:72:44:8E:C7:E7:1A:7C:3A:BA:A8:A2:83:DA:B8:58
a=setup:actpass
a=mid:data
a=sctpmap:5000 webrtc-datachannel 1024
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/f654a6f8-eb9e-4086-8533-0b204190916d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ICE_SERVERS array
ALL
MAX_BUNDLE
REQUIRE
TCP_ENABLED
CANDIDATE_ALL_NETWORKS
GATHER_ONCE
50
1000
-1
0
0
0
}
sdp = "RTCSessionDescription:\nanswer\nv=0
\no=- 6680864367847169940 2 IN IP4 127.0.0.1
\ns=-
\nt=0 0
\na=group:BUNDLE audio video
\na=msid-semantic: WMS ARDAMS
\nm=audio 63232 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 126
....
....
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
RTCConfiguration *config = [[RTCConfiguration alloc] init];
config.iceServers = self.iceServers;
config.bundlePolicy = RTCBundlePolicyBalanced;
self.peerConnection = [self.peerConnectionFactory peerConnectionWithConfiguration:config
constraints:self.defaultConstraints
delegate:self];
Hi Taylor,
Did you mean some RTCBundlePolicy settings in peer connection configuration?
.......
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/05f4ec60-0e67-4d23-89d3-76c6ef1142de%40googlegroups.com.
- (void) peerConnection:(RTCPeerConnection *)peerConnection didChangeIceConnectionState:(RTCIceConnectionState)newState;