Screen helpers · function

describeClipMime

Read back what a recording MIME type promises, without recording anything.

Explained in Recording and clips.

function describeClipMime(mime: string): ClipMimeDescription
import { describeClipMime } from '@driftengine/core';

Parameters

ParameterTypeDescription
mimestring

In depth

Pure, and string-parsing rather than clever: the accepted candidate above is the only evidence available about a MediaRecorder file's audio codec, since the blob's type is just the string it was handed.