Skip to content

Intermact API Reference / @intermact/react / pickSupportedMimeType

Function: pickSupportedMimeType() ​

pickSupportedMimeType(preferred?): string | undefined

Defined in: react/src/export/recordCanvas.ts:29

Pick the first MediaRecorder-supported MIME type (probing isTypeSupported, which Safari and Chrome answer differently). Returns undefined if none are supported or the API is unavailable.

Parameters ​

preferred? ​

string

Returns ​

string | undefined

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)