Group Calls: Simplify canvas creation

This commit is contained in:
Scott Nonnenberg 2024-04-17 09:57:31 -07:00 committed by GitHub
parent df234d33b0
commit 154254f471
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -460,11 +460,7 @@ export const GroupCallRemoteParticipant: React.FC<PropsType> = React.memo(
ref={canvasEl => { ref={canvasEl => {
remoteVideoRef.current = canvasEl; remoteVideoRef.current = canvasEl;
if (canvasEl) { if (canvasEl) {
canvasContextRef.current = canvasEl.getContext('2d', { canvasContextRef.current = canvasEl.getContext('2d');
alpha: false,
desynchronized: true,
storage: 'discardable',
} as CanvasRenderingContext2DSettings);
} else { } else {
canvasContextRef.current = null; canvasContextRef.current = null;
} }