Skip to content

Commit

Permalink
Apply fix also for mkv files
Browse files Browse the repository at this point in the history
  • Loading branch information
ottsimon authored Dec 19, 2024
1 parent 683e9da commit f6b2913
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/steps/recording/recorder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export default class Recorder {
const mainMimeType = mimeType.split(";")[0].trim();
let media;

if (mainMimeType === "video/webm") {
const fixMimeTypes = ["video/webm", "video/x-matroska"];

if (fixMimeTypes.includes(mainMimeType)) {
media = await fixWebmDuration(new Blob(this.#data, { type: mimeType }));
} else {
media = new Blob(this.#data, { type: mimeType });
Expand Down

0 comments on commit f6b2913

Please sign in to comment.