This commit is contained in:
Renan LE CARO 2025-04-20 13:41:12 +02:00
parent b3949d8c41
commit c88540488d
9 changed files with 78 additions and 77 deletions

View file

@ -89,6 +89,7 @@ export function startRecordingGame(gameState: GameState) {
const recordedChunks: Blob[] = [];
const instance = new MediaRecorder(captureStream, {
// Required for less mushy result
videoBitsPerSecond: 3500000,
});
mediaRecorder = instance;
@ -136,7 +137,6 @@ export function startRecordingGame(gameState: GameState) {
size: (blob.size / 1000000).toFixed(2),
});
targetDiv.appendChild(a);
};
}