🎥 Make videos programmatically with React
Get keyframes
Jonny Burgerad8e0b8210e8
diff --git a/packages/docs/docs/media-parser/fast-and-slow.mdx b/packages/docs/docs/media-parser/fast-and-slow.mdxindex 2cf63ca24d..12657b56eb 100644--- a/packages/docs/docs/media-parser/fast-and-slow.mdx+++ b/packages/docs/docs/media-parser/fast-and-slow.mdx@@ -22,6 +22,7 @@ Obviously, processing less of the file is faster and you should aim to read onlyThe following [`fields`](/docs/media-parser#fields) require the full file to be read:- [`structure`](/docs/media-parser/parse-media#structure)+- [`keyframes`](/docs/media-parser/parse-media#keyframes) - Except for ISO Base Media (`.mp4`, `.mov`) files.Also, if an [`onVideoTrack`](/docs/media-parser/parse-media#onvideotrack) or [`onAudioTrack`](/docs/media-parser/parse-media#onvideotrack) handler is passed, and the handler function returns an callback function for each sample, full parsing is required.diff --git a/packages/docs/docs/media-parser/parse-media.mdx b/packages/docs/docs/media-parser/parse-media.mdxindex 2940cf9a3c..7555fba404 100644--- a/packages/docs/docs/media-parser/parse-media.mdx+++ b/packages/docs/docs/media-parser/parse-media.mdx@@ -146,6 +146,16 @@ The location of the video was shot. Either `null` if not available or:Returns an object of two two arrays `videoTracks` and `audioTracks`.The data structure of them is not yet stable.+#### `keyframes`++An array of keyframes. Each keyframe has the following structure:++- `presentationTimeInSeconds`: The time in seconds when the keyframe should be presented+- `decodingTimeInSeconds`: The time in seconds when the keyframe should be decoded+- `positionInBytes`: The position in bytes where the keyframe is located in the file+- `sizeInBytes`: The size of the keyframe in bytes+- `trackId`: The ID of the track the frame belongs to+#### `unrotatedDimensions`_`{width: number, height: number}`_