Screen helpers · interface

ClipMimeDescription

What a recording MIME type commits the file to. See describeClipMime.

Explained in Recording and clips.

interface ClipMimeDescription
import type { ClipMimeDescription } from '@driftengine/core';

Properties

NameTypeDescription
containerreadonly'mp4' | 'webm' | 'unknown'
audioreadonly'aac' | 'opus' | 'unspecified'unspecified is not a synonym for "fine". It means the string named no audio codec, so the browser chose one and the file does not say which — the state this type exists to stop a caller from having to guess about.
shareablereadonlybooleanTrue only for MP4 carrying AAC: the one combination every share target on a phone ingests without transcoding.
More

Deliberately false for unspecified, which is a claim about knowledge rather than about the file. A caller that reports "this may not upload" on a file that turns out fine has been slightly annoying; one that stays quiet on a file that dies at an upload screen has wasted a clip nobody can re-record.