mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-09 15:33:31 +00:00
Merge PR #1041 for reproduced m4a media rejection
This commit is contained in:
commit
ab4e84ae10
2 files changed
+14
No files matched your search
@@ -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);
|
||||
});
|
||||
});
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user