[英]no remote video if localstream has no video webrtc
I'm currently experiencing a problem that a client who has audio but no video can't receive the remote clients video (even though the remote client is capturing both audio and video). 我当前遇到一个问题,即有音频但无视频的客户端无法接收远程客户端的视频(即使远程客户端同时捕获音频和视频)。
Video and audio constraints are set to true on both clients. 在两个客户端上,视频和音频约束均设置为true。 The application runs correctly if both clients have audio and video.
如果两个客户端都具有音频和视频,则该应用程序将正确运行。
Does anyone know a solution for this? 有谁知道解决方案吗?
Simply make sure that the client who has audio/video MUST create offer ; 只需确保拥有音频/视频的客户必须创建报价 ; and other client should create answer.
和其他客户应创建答案。 Then it will be oneway streaming ;
然后将是单向流 ; and it will work!
它会工作!
userWhoHasMedia.createOffer(sdp_sucess_callback, sdp_failure_callback, sdp_constraints);
userWhoDontHavemedia.createAnswer(sdp_sucess_callback, sdp_failure_callback, sdp_constraints);
Also, if you want, you can set " OfferToReceiveAudio
" and " offerToReceiveVideo
" to false for client who doesn't captures media. 另外,如果您愿意,可以为未捕获媒体的客户端将“
OfferToReceiveAudio
”和“ offerToReceiveVideo
”设置为false。 Though, it is useless in your case, because non-Media client is receiver. 但是,对于您而言,它是无用的,因为非媒体客户端是接收者。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.