Recording · interface

ClipEncoderOptions

Everything an encode needs: the frame, the rate, the bitrate, and the score's sample rate.

Explained in Recording and clips.

interface ClipEncoderOptions extends ClipEncodeRequest
import type { ClipEncoderOptions } from '@driftengine/media';

In depth

The first four are ClipEncodeRequest, which is what clipEncodingSupported asks about, so a caller can hand the same object to the gate and to open and know they asked one question.

Properties

NameTypeDescription
sampleRatereadonlyoptionalnumberAudio sample rate, so the score and the encoder agree.