Custom video shape

Description
I have to custom the video shape from rectangle (default) to circle.
Because all participants have been rendered on 1 canvas so i think it’s can’t reshape the video of each participant.
Is there anyway to do that with ShareArrayBuffer enabled?

Screenshots
From this shape:
Screenshot 2022-12-15 at 12.37.10

To this shape:
Screenshot 2022-12-14 at 9.11.42

Hey @nguyen.hoangtue

Thanks for your feedback.

In Video SDK, videos are rendered in 16:9 aspect ratio, but you can add a DOM layer to cover each video or re-render the video with CanvasRenderingContext2D.drawImage().

Here is an example to show how it works:

Thanks
Vic

1 Like

Thanks for your reply,
It’s very helpful for us to deal with this issue <3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.