Open xueqingxiao opened 5 years ago
Shouldn't this be in user land?
@balupton Is WebRTC not part of the standard browser interface? How would one implement this in userland?
I would check out https://github.com/shinyoshiaki/werift-webrtc. Long term you are going to have a pretty high burden using Google's WebRTC implementation via FFI. Also the security issues that have come with it.
I am happy to help also! If anyone wants to grok WebRTC more I wrote WebRTC for the Curious and work on Pion. Pion isn't relevant at all for deno, but happy to throw in stuff that I learned along the way writing it.
Shouldn't this be in user land?
...
@balupton Is WebRTC not part of the standard browser interface? How would one implement this in userland?
std/ws is a thing so it probably could be user-land, however if it is it should be a std user land since this can be considered a standard interface.
std/ws is a thing
std/ws is a server, not a client. for client we have the web WS API. WebRTC shouldnt be a module, but a built-in.
std/ws is a server, not a client.
Well originally it had both, but I do get and agree with your point.
I actually just dug through the source-code to check and I was under the incorrect assumption that the websocket client was some sort of ts shim that was just auto-included. So that's good to know.
Why was the feat label replaced with cli and suggestion labels?
Because we have not made a decision on if this will be implemented or not. feat
label is only used for issues that we have decided should be implemented.
Maybe this will be of value one day: https://github.com/webrtc-rs/webrtc
webrtc is now a W3C standard recommendation , please consider integrate at least datachannel via usrsctp which is used by Chrome and almost all the others
Can we integrate this?
@mko-io usrsctp is being replaced with dcnet in Chrome. Might be worth exploring if integrating that is easier!
I'm waiting for it.
I'm excited for it!
Hey guys, I assume this is not a priority at all for Deno core ? It would be really nice to have this.
Yes, this isnt a priority. I am keeping an eye on this, and we probably would use the WebRTC crate, but this wont happen anytime soon as there are other priorities
Yes, this isnt a priority. I am keeping an eye on this, and we probably would use the WebRTC crate, but this wont happen anytime soon as there are other priorities
Cool, thanks for answering. I was just asking since webGPU was added, I thought this might be an api that is more "important" since it's already a standard.
any plan add mediasoup to denoland ?
You're about to see WebRTC + AV1 replace RTMP + HLS, I think. The big companies are about to WHIP it into shape.
I've tested Cloudflare WebRTC Stream it's much lower latency than RTMP, feels like AV1 + WebRTC is coming.
Imagine being able to play a video from Deno serverside WebRTC (Rasberry Pi) to a Browser, would be spicy! Or open a port from an IP camera without RTSP/RTMP direct to a browser device with sub second latency and no HLS. Double Spicy!
@crowlKats my apologies for tagging you like this, more than 1 year has passed since I asked about some updates. I know if there were updates on this someone would have informed us.
I am asking this again not to sound demanding or rude, but this is such an exciting feature and it would be so cool to have a native way of building SFU's in deno. Were they any internal discussions about the potential inclusion in deno ?
No, there have been no discussions about this, as it is not a priority. Also, the involvement of this project is unknown, but likely quite complex.
Some of the fun of WebRTC is better left out of Deno at the moment...
There's a webrtc: 'block'
CSP in a spec but it hasn't made its way to browsers yet. Deno, not using CSPs, should probably have a similar off switch when this gets implemented. https://wpt.fyi/results/content-security-policy/webrtc?label=experimental&label=master&aligned
Reference: WebRTC Native API samples client & server both side