RTC between 2 .NET Clients, SignalR as WebSocket layer #1113
Replies: 1 comment
-
Hi Brandon, So the Orchestrator has its own RTCPeerConnection instance somewhere? I'm guessing it's the one in this line of code.
Assuming that's the case are you performing step 4 and sending an SDP answer from the Orchestrator back to the End User? The SDP protocol is an offer/answer where the one party generates the offer, sends it to the other party who generates an answer and sends it back. Until both ends have the SDP from the remote party the ICE connection attempts cannot proceed. Once the SDP exhcnage is complete then step 5 referes to echancing ICE candidates. This is a one way exchange int hat each party sends its candidates to the remote party but does not need an answer. As the ICE candidates are generated you will need to send them via SignalR to the remote party. The candidates can sometimes take a second or two to generate as peers try and determine what their public IP address is . negotiate with a TURN server etc. Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
Hey folks,
I have the following architecture in a .NET 8.0 environment:
What I want to do is for the End User and the Orchestrator to establish an RTC data connection
I start by sending a message through SignalR to the Orchestrator, from the End User:
then, in SignalR, I forward this on to the Orchestrator
In the Orchestrator, then, I field this request:
which returns
SetDescriptionResultEnum.OK
as expected.What I'm not sure about is what I do next. I know I need to
addIce
stuff... but I'm not sure how to create the IceDescriptionInit value that gets sent along the wire as it shows in Step 5 of these docs as whenonicecandidate
is fired, mysignalingState
is neverRTCSignalingState.have_remote_offer
I've subscribed to the
oniceconnectionstatechange
andonconnectionstatechange
values and in both the End User and the Router and this is what I end up seeing:End User:
Orchestrator:
Beta Was this translation helpful? Give feedback.
All reactions