mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-21 13:35:59 +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
|
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')) {
|
if (selectedMimeType.includes('webm')) {
|
||||||
recorderOptions.videoKeyFrameIntervalDuration = 100; // Keyframe every 100ms
|
recorderOptions.videoKeyFrameIntervalDuration = 100; // Keyframe every 100ms for better quality
|
||||||
recorderOptions.videoKeyFrameIntervalCount = 1; // More keyframes = better quality
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const recorder = new MediaRecorder(stream, recorderOptions);
|
const recorder = new MediaRecorder(stream, recorderOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user