rust-sdks icon indicating copy to clipboard operation
rust-sdks copied to clipboard

The support of screen sharing

Open daniel-abramov opened this issue 2 years ago โ€ข 4 comments

Really glad that LiveKit uses Rust, this opens so many possibilities! ๐Ÿ™‚ Having an excellent and easy-to-use library for real-time communication is really cool!

I've shortly gone through the example code and published tracks to see if there is a simple and straightforward way to add screen-sharing (something as easy to use as in the JS/TS SDK). From what I've understood so far, it seems like currently the only way to have screen sharing is to capture the frames in the user code and then convert them to YUV with one of the helpers, then pass it to the capture_frame which will encode the shelf and send it down the line to the RTP engine, etc.

I.e. is my understanding correct that at the moment there is no simple way to e.g. use the screen capturing engine from libwebrtc, so the user is expected to capture the frames by other means and supply them to the tracks?

daniel-abramov avatar Jun 19 '23 17:06 daniel-abramov

Hey, you're correct, at the moment there is no simple way to do screenshares. But exposing the native libwebrtc capture engine is planned (as well as microphones and webcams). EDIT: Just started working on it here

theomonnom avatar Jun 20 '23 12:06 theomonnom

ๅ…ฌๅผ€ๅŽŸ็”Ÿ libwebrtc ๆ•่Žทๅผ•ๆ“Ž็›ฎๅ‰ๆœ‰ไป€ไนˆๆœ€ๆ–ฐ็š„่ฟ›ๅบฆๅ—๏ผŸ

fuyoo avatar Dec 08 '23 02:12 fuyoo