Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / MediaErrorCode

Type Alias: MediaErrorCode

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

Defined in: src/codes.ts:341

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).