paullouisageneau / datachannel-wasm

C++ WebRTC Data Channels and WebSockets for WebAssembly in browsers
MIT License
146 stars 24 forks source link

support media transport #53

Open Noiled opened 2 months ago

Noiled commented 2 months ago

Could tracks and media transport be supported? if no, can u explain the problem

paullouisageneau commented 2 months ago

It is impossible to expose the same API as libdatachannel because the WebRTC API in browsers is very high-level for media (it manipulates high-level streams that you connect together and handles encoding/decoding under the hood). It would be possible to wrap the entire media API including MediaDevices but that would offer a completely different API and would be a considerable task.