Skip to content

🎥 Make videos programmatically with React

1020 B
Raw Blame
import type {ComponentProps} from 'react';
import type {WordHighlightCaptions} from './word-highlight-captions';

export const wordHighlightCaptionsInitialProps = {
	captions: [
		{
			text: 'Captions',
			startMs: 0,
			endMs: 800,
			timestampMs: 400,
			confidence: null,
		},
		{
			text: ' can',
			startMs: 800,
			endMs: 1500,
			timestampMs: 1150,
			confidence: null,
		},
		{
			text: ' move',
			startMs: 1500,
			endMs: 2300,
			timestampMs: 1900,
			confidence: null,
		},
		{
			text: ' with',
			startMs: 2300,
			endMs: 3100,
			timestampMs: 2700,
			confidence: null,
		},
		{
			text: ' every',
			startMs: 3100,
			endMs: 4000,
			timestampMs: 3550,
			confidence: null,
		},
		{
			text: ' spoken',
			startMs: 4000,
			endMs: 5100,
			timestampMs: 4550,
			confidence: null,
		},
		{
			text: ' word.',
			startMs: 5100,
			endMs: 6500,
			timestampMs: 5800,
			confidence: null,
		},
	],
	combineTokensWithinMilliseconds: 800,
	width: 682,
} satisfies ComponentProps<typeof WordHighlightCaptions>;