Skip to main content

Recording

Recording functionality is provided in the rp-recording package.

Usage

import {Player, Script} from "liqvid";
import {RecordingControl} from "rp-recording";

const script = new Script([
["intro/", "1:00"]
]);

<Player controls={[<RecordingControl/>]} script={script}>
{/* */}
</Player>
danger

Warning: by default, Player will pause/play whenever the canvas is clicked. Since this is annoying while recording, rp-recording disables this when it is loaded as a control. Therefore, once you are done recording, you need to make sure that you are using data-affords="click" as needed.

danger

The audio recording produced by the browser will not have the metadata needed for seeking. To fix the recording and make it available as mp4:

liqvid audio convert audio.webm