Question

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. The application runs correctly if both clients have audio and video.

Does anyone know a solution for this?

Was it helpful?

Solution

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. Though, it is useless in your case, because non-Media client is receiver.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top