Group Calls: Simplify canvas creation
This commit is contained in:
parent
df234d33b0
commit
154254f471
1 changed files with 1 additions and 5 deletions
|
@ -460,11 +460,7 @@ export const GroupCallRemoteParticipant: React.FC<PropsType> = React.memo(
|
|||
ref={canvasEl => {
|
||||
remoteVideoRef.current = canvasEl;
|
||||
if (canvasEl) {
|
||||
canvasContextRef.current = canvasEl.getContext('2d', {
|
||||
alpha: false,
|
||||
desynchronized: true,
|
||||
storage: 'discardable',
|
||||
} as CanvasRenderingContext2DSettings);
|
||||
canvasContextRef.current = canvasEl.getContext('2d');
|
||||
} else {
|
||||
canvasContextRef.current = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue