Merge Desktop and Video track

how can the merge the Video and Desktop track like the meet.jit.si are doing shown in fig (1.1) when we share the desktop screen after that we enabled the video so the track are like this on the bottom right on desktop track there is a video track its really appreciating if someone help me


fig 1.1

look at https://github.com/jitsi/jitsi-meet/blob/master/react/features/stream-effects/presenter/JitsiStreamPresenterEffect.js

they just draw video cam + screensharing on canvas

then create a joint track from canvas

and send it to server

1 Like

thank you for reply that was really appreciating i will see it