Android 如何创建webrtc的仅接收sdp服务?
我知道如何通过在param MediaConstraints中添加“OfferToReceiveVideo:false”和“OfferToReceiveAudio:false”来创建仅发送要约,方法如下:Android 如何创建webrtc的仅接收sdp服务?,android,webrtc,webrtc-android,Android,Webrtc,Webrtc Android,我知道如何通过在param MediaConstraints中添加“OfferToReceiveVideo:false”和“OfferToReceiveAudio:false”来创建仅发送要约,方法如下: public void createOffer(SdpObserver observer, MediaConstraints constraints) 但如何创建仅接收sdp优惠?我试图通过不向对等连接添加媒体流来创建它,但是,这将导致sdp非常短,并且“a:recvonly”行中不包含任何
public void createOffer(SdpObserver observer, MediaConstraints constraints)
但如何创建仅接收sdp优惠?我试图通过不向对等连接添加媒体流来创建它,但是,这将导致sdp非常短,并且“a:recvonly”行中不包含任何内容。并且没有生成ice候选者
我想创建webrtc对等连接以接收媒体流,但不发送。已解决。
在MediaConstraints中将“OfferToReceiveAudio”和“OfferToReceiveVideo”设置为“true”。并且不要添加流 我想和你的情况相反。我该怎么做?