Fix example blob MIME types

This commit is contained in:
Vanilagy
2025-08-01 11:11:37 +02:00
parent 95091cce9c
commit b60d4cafed
2 changed files with 2 additions and 2 deletions
@@ -91,7 +91,7 @@ const compressFile = async (file: File) => {
// Display the final media file
videoElement.style.display = '';
videoElement.src = URL.createObjectURL(new Blob([output.target.buffer!]));
videoElement.src = URL.createObjectURL(new Blob([output.target.buffer!], { type: output.format.mimeType }));
void videoElement.play();
compressionFacts.style.display = '';
@@ -180,7 +180,7 @@ const generateVideo = async () => {
videoInfo.style.display = '';
// Display and play the resulting media file
const videoBlob = new Blob([output.target.buffer!], { type: 'video/mp4' });
const videoBlob = new Blob([output.target.buffer!], { type: output.format.mimeType });
resultVideo.src = URL.createObjectURL(videoBlob);
void resultVideo.play();