fix(macOS): allow .m4a mic/system audio sidecars through the media allowlist

This commit is contained in:
Priyangshu committed 2026-09-26 02:18:55 +05:30
1 parent 3864596ae5
commit 66967ac366
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",