microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
913 stars 283 forks source link

Question regarding connection #567

Open raggnic opened 4 years ago

raggnic commented 4 years ago

Hello I've implemented a signaler to use with OpenVidu Rest and RPC. It's working a little but the work is far from over.

I'm able to join a room, publish and subscribe to a video and that's where i must have made something wrong, because if i call PeerConnection.HandleConnectionMessageAsync just after the publish answer the video is published but nothing happens when i ask to receive a video. On the other hand if i delay and call HandleConnectionMessageAsync on the receiveVideoFrom answer, the remote video is well received but I no longer publish the local video.

Does it sound like a common mistake? Because I'd like to have both videos :-)

djee-ms commented 4 years ago

Hi,

As far as I remember "publish" and "receiveVideoFrom" are not terms used anywhere in this library nor in the WebRTC standard, so I'm afraid I don't know what you're talking about, sorry. HandleConnectionMessageAsync() needs to be called when the signaler receives any offer/answer SDP message from the remote peer. The sequence of actions is:

Please also check whether you have AutoCreateOfferOnRenegotiationNeeded set or not, this influences whether you need to manually create an offer by hand or the Unity component doing it for you.

raggnic commented 4 years ago

I see, thank you for your answer. I lack the knowledge of WebRTC solutions, and Openvidu/Kurrento has this ip camera integration that I'm looking for. I'll keep searching

raggnic commented 4 years ago

I've put my project on github. I've published the code on the slack channel but here it is too https://github.com/raggnic/WebRTCPlayground If it is any good to any one that's good, and if someone can tell me what's wrong and why I can't both publish my video and subscribe to remote that would be even better

Shantibhushan95 commented 3 years ago

@raggnic Hello! Have you had any further success with your project? I'm trying to implement this for Android with OpenVidu. Can you state the exact sequence of events you've made in your project to make it at least publish the video? Or point me towards a clear doc. Thank you!