Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lwc:networking:webrtc [2025/01/21 16:28] – created John Harrison | lwc:networking:webrtc [2025/01/23 15:42] (current) – John Harrison | ||
---|---|---|---|
Line 3: | Line 3: | ||
* There has to be some sort of server outside of the ICE server that handles the signaling | * There has to be some sort of server outside of the ICE server that handles the signaling | ||
* The clients need some way to identify themselves on the signaling server so there is typically a login process. //This is not required though.// | * The clients need some way to identify themselves on the signaling server so there is typically a login process. //This is not required though.// | ||
+ | * typically after login we would then connect to a STUN server for the candidate negotiation. We don't need a unique ID to do this tho so login is not required. | ||
* The signaling server is typically accessed through websockets | * The signaling server is typically accessed through websockets | ||
* Part of the point is to agree on an ICE server? | * Part of the point is to agree on an ICE server? | ||
Line 15: | Line 16: | ||
}, | }, | ||
" | " | ||
- | ----------> | + | ---------------------> |
| | ||
" | " | ||
Line 23: | Line 24: | ||
}, | }, | ||
" | " | ||
- | | + | ---------------------> |
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | < | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | < | ||
+ | |||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | ---------------------> | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | ---------------------> | ||
</ | </ | ||
+ | |||
+ | * candidate exchange goes back and forth between the caller and the target until they agree | ||
+ | * the ''" | ||
+ | * the tutorialspoint example does not use the " | ||
+ | |||
+ | ==== Notes ==== | ||
+ | * when we connect to the STUN server we need to give it info on the type of data we are sending | ||
+ | * straight-up data: use '' | ||
+ | * audio or video: use '' |