- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Documents for iOS SDK didn't show how to use RTCConfiguration. I used it as the code below, no effect. What's the right usage for RTCConfiguration ?
I want to change the configuration for ICE. The interfaces of the RTCPeerClientConfiguration for ICE has only one(candidateNetworkPolicy).
How to use RTCConfiguration in iOS SDK ? 3x!
iOS SDK Intel 官方文档只是给出了类说明,没有说明怎么使用。我使用了如下代码配置RTCConfiguration,好像没有起作用。正确使用方法应该是怎么样的?多谢指点!!
- (RTCPeerClient*)peerClient{ if (_peerClient==nil){ id<RTCP2PSignalingChannelProtocol> scc=[[SocketSignalingChannel alloc]init]; RTCConfiguration* globalRTCconfig = [[RTCConfiguration alloc] init]; globalRTCconfig.tcpCandidatePolicy = RTCTcpCandidatePolicyDisabled; globalRTCconfig.bundlePolicy = RTCBundlePolicyMaxBundle; globalRTCconfig.rtcpMuxPolicy = RTCRtcpMuxPolicyRequire; RTCPeerClientConfiguration* config=[[RTCPeerClientConfiguration alloc]init]; NSArray *ice=[[NSArray alloc]initWithObjects:[[RTCIceServer alloc]initWithURLStrings:[[NSArray alloc]initWithObjects:@"turn:x.x.x.x?transport=udp", nil] username:@"xx" credential:@"xx"], nil]; config.ICEServers=ice; config.mediaCodec.videoCodec=VideoCodecH264; config.candidateNetworkPolicy=RTCCandidateNetworkPolicyAll; _peerClient=[[RTCPeerClient alloc]initWithConfiguration:config signalingChannel:scc]; [_peerClient addObserver:self]; } return _peerClient; }
- Tags:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to change the configuration for ICE. The interfaces of the RTCPeerClientConfiguration for ICE has only one(candidateNetworkPolicy).
How to use RTCConfiguration in iOS SDK ? 3x!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Zhang,
Setting RTCConfiguration is not supported at this time. Only items in RTCPeerClientConfiguration work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jianjun Z. (Intel) wrote:
Hi Zhang,
Setting RTCConfiguration is not supported at this time. Only items in RTCPeerClientConfiguration work.
I tested the demo(although I setted “config.candidateNetworkPolicy=RTCCandidateNetworkPolicyAll;” ), RTCPeerClientConfiguration can't deal with networks changing case. During the call, the network switch(eg.wifi-->4G) will cause the call interrupt. I found that the ice is not configured properly. So I need to change the RTCConfiguration. If only items in RTCPeerClientConfiguration work, how to deal with the network change case seamlessly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SDK 3.3 does not perform ICE restart when networks changed. config.candidateNetworkPolicy controls what kind of candidates are collected.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page