client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

[feature] Programmatically generated local video track

Open T-P-F opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Yeah, my users have a use case for sharing a stream of frames that are generated by the app with other connected users in the room. Like a screen share but frames generated programmatically by the app (happy to explain the use case further if helpful).

Describe the solution you'd like

See this thread in LiveKit #helpchannel

I'm guessing that the solution will look like the addition of a new constructor on LocalVideoTrack that allow me to pass in an object that will generate the frames. Spec for that object tbd.

Describe alternatives you've considered

I've attempted to send the frames over the room data channel. See this thread on LiveKit #helpchannel but am seeing timeouts and the size/frequency limits are undefined afaik.

I'd render the images on the other side in an Image() or similar widget. Would be much nicer to publish these frames as a video track of course! 😊

Additional context

I love your work 🙏

T-P-F avatar Sep 21 '23 15:09 T-P-F