Open raggnic opened 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:
HandleConnectionMessageAsync()
HandleConnectionMessageAsync()
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.
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
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
@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!
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 :-)