Open nelzaatari opened 8 years ago
change the defaultOfferConstraintsIfVideoOn like below will work
(RTCMediaConstraints *)defaultOfferConstraintsIfVideoOn:(BOOL)videoON {
NSString * videoOnStr = @"false"; if (videoON) { videoOnStr = @"true"; } NSArray *mandatoryConstraints = @[ [[RTCPair alloc] initWithKey:@"OfferToReceiveAudio" value:@"true"], [[RTCPair alloc] initWithKey:@"OfferToReceiveVideo" value:videoOnStr] ];
RTCMediaConstraints* constraints = [[RTCMediaConstraints alloc] initWithMandatoryConstraints:mandatoryConstraints optionalConstraints:nil]; return constraints; }
Hi, Iam using above code. but not working.
hello,
how can i start an audio call only ? is it like i have to start everything and then switch "off" video or there is another way of doing it ?
Thank you