🎥 Make videos programmatically with React
import type {SyntheticEvent} from 'react';
import {Internals} from 'remotion';
/*
* @description Toggle playback of the current composition.
* @see [Documentation](https://www.remotion.dev/docs/studio/toggle)
*/
export const toggle = (e?: SyntheticEvent | PointerEvent) => {
Internals.timeValueRef.current?.toggle(e);
};