webassembly webrtc

916 views
Skip to first unread message

Angelo Mantellini

unread,
Jun 19, 2022, 6:22:25 PM6/19/22
to discuss-webrtc
Hi,
I need to understand if it is possible to compile libwebrtc as webassembly module.
Thanks a lot for your support.

Angelo

Sean DuBois

unread,
Jun 21, 2022, 4:32:48 PM6/21/22
to discuss-webrtc
Hi Angelo,

What is your goal? Are you trying to run WASM in the browser or a runtime outside the browser?

You aren’t able to send UDP packets directly in the browser. You will never be able to ship your own. You probably can target a runtime, but it will be a challenging.

With Pion we have a ‘WASM implementation’ but really it just calls the browser APIs. Happy to describe exactly how it works if that is helpful.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/73cb64e4-453d-4c01-839a-ab45191682bfn%40googlegroups.com.

Angelo Mantellini

unread,
Jun 21, 2022, 6:06:32 PM6/21/22
to discuss...@googlegroups.com
Hi, could you explain me the wash implementation of pion?
Thanks a lot

Angelo Mantellini

On 21 Jun 2022, at 22:32, Sean DuBois <se...@pion.ly> wrote:

Hi Angelo,

Angelo Mantellini

unread,
Jun 21, 2022, 6:11:58 PM6/21/22
to discuss-webrtc
In my case I need to create a custom implementation of webrtc where I have to modify the transport.
With wasm you can use websockets and I want to use them to communicate with outside the sandbox.
I appreciate if you could you tell me the details of this implementation.
Angelo

leeoxiang

unread,
Jun 22, 2022, 1:40:28 AM6/22/22
to discuss-webrtc
We (Tencent Cloud) did this, but not full libwebrtc,   we just compile the call api part and use WebCodecs for video encode and encode,WebTransport for  media part.

Sean DuBois

unread,
Jun 22, 2022, 11:02:24 AM6/22/22
to 'Neil Young' via discuss-webrtc
That is really cool! Do you override `new RTCPeerConnection` and people just start using it?

If two browsers are in the same LAN can you do WebTransport? Or does it have to be a server connection?

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

Angelo Mantellini

unread,
Jun 22, 2022, 11:40:01 AM6/22/22
to discuss...@googlegroups.com
Can we have a chat? Thanks

Da: discuss...@googlegroups.com <discuss...@googlegroups.com> per conto di Sean DuBois <se...@pion.ly>
Inviato: Wednesday, June 22, 2022 5:02:04 PM
A: 'Neil Young' via discuss-webrtc <discuss...@googlegroups.com>
Oggetto: Re: [discuss-webrtc] Re: webassembly webrtc
 

guest271314

unread,
Jun 22, 2022, 9:48:03 PM6/22/22
to discuss-webrtc

Sean DuBois

unread,
Jun 22, 2022, 10:59:58 PM6/22/22
to discuss-webrtc
This follows the pattern that Pion does. You can write your code in C++, but have it call the WebRTC APIs in Javascript.

Thanks for sharing!


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
Message has been deleted

angelo mantellini

unread,
Jun 23, 2022, 5:48:06 PM6/23/22
to discuss...@googlegroups.com
Hi, what I don't understand is: what do you define "wrapper"? just of the sockets?
for example, are the decoding, econding parts written in go?
Or the native wasm part is "just" the signaling part?
Thanks a lot
Angelo

guest271314

unread,
Jun 24, 2022, 9:44:32 AM6/24/22
to discuss-webrtc
What are you trying to achieve by running WebRTC in WebAssembly?
Reply all
Reply to author
Forward
0 new messages