Skip to content

🎥 Make videos programmatically with React

document new field

Jonny Burger048f159a8989
diff --git a/packages/docs/docs/captions/create-tiktok-style-captions.mdx b/packages/docs/docs/captions/create-tiktok-style-captions.mdx
index f49ebcced1..580c21db28 100644
--- a/packages/docs/docs/captions/create-tiktok-style-captions.mdx
+++ b/packages/docs/docs/captions/create-tiktok-style-captions.mdx
@@ -56,6 +56,7 @@ const {pages} = createTikTokStyleCaptions({
{
text: "Using Remotion's",
startMs: 40,
+ durationMs: 860,
tokens: [
{
text: 'Using',
@@ -72,6 +73,7 @@ const {pages} = createTikTokStyleCaptions({
{
text: 'TikTok template,',
startMs: 900,
+ durationMs: 1050,
tokens: [
{
text: 'TikTok',
@@ -110,6 +112,7 @@ A page consists of:
- `text`: The text of the page.
- `startMs`: The start time of the page in milliseconds.
+- `durationMs`: The duration of the page in milliseconds (_from v4.0.261_).
- `tokens`: An array of objects, if you want to animate word-per-word:
- `text`: The text of the token.
- `fromMs`: The absolute start time of the token in milliseconds.