Skip to content

Commit

Permalink
Make canvas size dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Dec 8, 2024
1 parent c143f48 commit c26feba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/js/media_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export class MediaManager {
// Send the OffscreenCanvas to the worker
worker.postMessage({
type: 'init',
data: { canvas: offscreenCanvas, width: 1920, height: 1080 }, // Default size, updated later
data: { canvas: offscreenCanvas, width: screenVideo.videoWidth, height: screenVideo.videoHeight },
}, [offscreenCanvas]);

// Wait for both videos to load
Expand Down

0 comments on commit c26feba

Please sign in to comment.