livekit / client-sdk-android

LiveKit SDK for Android
https://docs.livekit.io
Apache License 2.0
160 stars 63 forks source link

LiveKit Video track processing (convert canvas to VideoFrame) #377

Open safeer-ahmed opened 4 months ago

safeer-ahmed commented 4 months ago

Describe the bug The VideoFrame can be instantiated using a canvas in the Javascript SDK. How can the same be done in Android? In Android, to create a VideoFrame we need to provide a buffer. Do we have any workaround to convert the canvas to a buffer?

To Reproduce Post-frame processing e.g. blurring the outgoing video feed

Expected behavior There should be a way to create the VideoFrame from the canvas.

Additional context LiveKit track processing