Is there an example for using an external signaling server? #1291
Unanswered
paulomorgado
asked this question in
Q&A
Replies: 2 comments 2 replies
-
WebRTC signalling can be as simple as sending an SDP offer and getting an SDP answer. If you want also want to trickle ICE candidates and maybe SDP updates you need something more. There is this class that I used at one point for a rudimentary REST server implementation. The server side of it is here. |
Beta Was this translation helpful? Give feedback.
0 replies
-
My rought understanding of how it works (minus ICE) is: sequenceDiagram
participant Client
participant Server as Server (SIPSorcery)
participant Signaling as Signaling (Web Sockets)
participant ICE
Client->>Signaling: Connect
Signaling->>Server: Relay client connected
Server->>Server: createOffer()
Server->>ICE: Gather ICE candidates
ICE->>Server: Send ICE candidates
Server->>Server: onicecandidate - signalingState is closed
Server->>Server: setLocalDescription()
Server->>Signaling: Send offer
Signaling->>Client: Relay offer
Client->>Client: setRemoteDescription()
Client->>Client: createAnswer()
Client->>Client: setLocalDescription()
Client->>Signaling: Send answer
Signaling->>Server: Relay answer
Client->>Client: onicecandidate
Server->>Server: RTCPeerConnection.setRemoteDescription()
Am I correct? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All the examples I've seen seem to use the WebRTC server as the signaling server.
I have a use case where both client and server connect to signaling server that is not the WebRTC server.
What
RTCPeerConnection
events do I need to handle and what methods do I need to call?Beta Was this translation helpful? Give feedback.
All reactions