If I want to use only one of these elements (video or canvas), which one should I choose?
If I decide to stick with just one element and don’t use isRenderSelfViewWithVideoElement, what would be the performance difference, if any, under certain conditions?
For performance optimization, on mobile browsers, rendering the self-view on the Video element provides better performance compared to the Canvas element.
However, in the case of SharedArrayBuffer enabled, it is more efficient to render both the self-view and other’s view on the same canvas.
To simplify the decision-making process, our Video SDK offers a method called isRenderSelfViewWithVideoElement() which indicates whether to use the Video element or the Canvas element.