Merge PR #1041 for reproduced m4a media rejection

This commit is contained in:
webadderall committed 2026-10-16 18:15:54 +11:00
commit ab4e84ae10
2 files changed
+14

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { describe, expect, it } from "vitest";
import { getMediaContentType, isSupportedLocalMediaPath } from "./mediaTypes";
describe("mediaTypes", () => {
it("recognizes .m4a as audio/mp4", () => {
expect(getMediaContentType("recording.m4a")).toBe("audio/mp4");
});
it("supports .m4a as a local media path", () => {
expect(isSupportedLocalMediaPath("recording.m4a")).toBe(true);
});
});
+1
View File
@@ -8,6 +8,7 @@ export const MEDIA_CONTENT_TYPES: Record<string, string> = {
".avi": "video/x-msvideo",
".wav": "audio/wav",
".mp3": "audio/mpeg",
".m4a": "audio/mp4",
".ogg": "audio/ogg",
".png": "image/png",
".jpg": "image/jpeg",