mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Fix MediaRecorder error: remove conflicting keyframe parameter
This commit is contained in:
5
main.js
5
main.js
@@ -669,10 +669,9 @@ async function downloadVideo() {
|
||||
bitsPerSecond: 75000000, // Some browsers use this instead
|
||||
};
|
||||
|
||||
// Add quality parameter if supported (0-1 scale, 1 = highest)
|
||||
// Add quality parameter if supported
|
||||
if (selectedMimeType.includes('webm')) {
|
||||
recorderOptions.videoKeyFrameIntervalDuration = 100; // Keyframe every 100ms
|
||||
recorderOptions.videoKeyFrameIntervalCount = 1; // More keyframes = better quality
|
||||
recorderOptions.videoKeyFrameIntervalDuration = 100; // Keyframe every 100ms for better quality
|
||||
}
|
||||
|
||||
const recorder = new MediaRecorder(stream, recorderOptions);
|
||||
|
||||
Reference in New Issue
Block a user