ISBX / apprtc-ios

A native iOS video chat app based on WebRTC
BSD 3-Clause "New" or "Revised" License
1.35k stars 413 forks source link

Peer Connection Object is nil #129

Open Rahulgupta-cdnsol opened 6 years ago

Rahulgupta-cdnsol commented 6 years ago

I am using below code

RTCDataChannelInit *datainit = [[RTCDataChannelInit alloc] init];

datainit.isNegotiated = YES;

datainit.isOrdered = YES;

datainit.maxRetransmits = 30;

datainit.maxRetransmitTimeMs = 30000;

datainit.streamId = 1; self.dataChannel = [_peerConnection createDataChannelWithLabel:@"commands" config:datainit]; self.dataChannel.delegate=self;

but _peerConnection is nil so please let me know how to create this object. Thanks,