Skip to content

Type Alias: MediaErrorCode ​

MediaErrorCode = "media/load-failed" | "font/fetch-failed" | "font/read-failed" | "font/parse-failed" | "media/fetch-failed" | "media/read-failed" | "media/decode-failed" | "media/svg-preview-failed"

Conditions carried by MediaError: an image, font, or audio/video payload could not be fetched, read, or decoded. Kept separate from PackageReadError because the failure is in a referenced resource, not in the package structure, and the recovery is usually different (fix the URL or the file, not the deck).