paullouisageneau / datachannel-wasm

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

support media transport #53

Open Noiled opened 6 months ago

Noiled commented 6 months ago

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

paullouisageneau commented 6 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.