我在iOS网络实时音视频会议上工作,想要使用仅音频的SDP进行纯音频呼叫
我正在创建下面的报价,但SDP中仍有音频和视频
创建仅音频产品的正确方法是什么
NSDictionary *mandatoryConstraints = @{
@"OfferToReceiveAudio" : @"true",
@"OfferToReceiveVideo" : @"false"
};
RTCMediaConstraints* constraints =
[[RTCMediaConstraints alloc] initWithMandatoryConstraints:mandatoryConstraints
optionalConstraints:nil];发布于 2017-05-04 00:23:35
我能够做到这一点。
使用constraints
在接收端,您可以执行相反的操作
发布于 2016-12-02 18:52:39
我可以通过创建视频发送器找到解决方案,只有在视频被启用的情况下,如下所示。
if (_videoAllowed) {
[self createVideoSender];
}https://stackoverflow.com/questions/40920592
复制相似问题