🎥 Make videos programmatically with React
Merge branch 'main' into support/media-improvements
Jonny Burger817ee86ff012
diff --cc packages/docs/docs/media/video.mdxindex 61a79b451c,f085af4397..525effe26a--- a/packages/docs/docs/media/video.mdx+++ b/packages/docs/docs/media/video.mdx@@@ -199,10 -201,16 +199,12 @@@ export const MyComposition = () =>};```- ### `loopVolumeCurveBehavior?`+ ### `loopVolumeCurveBehavior?`<AvailableFrom v="4.0.354" />- **Currently not supported!**+ Controls the `frame` which is returned when using the [`volume`](#volume) callback function and adding the [`loop`](#loop) attribute.++ Can be either `"repeat"` (default, start from 0 on each iteration) or `"extend"` (keep increasing frames).-### `acceptableTimeShiftInSeconds?`--**Pending removal**: Future iterations will also have client-side playback and not support this prop which was designed for the `<video>` tag.-### `pauseWhenBuffering?`If set to `true` and the video is loading, the Player will enter into the [native buffering state](/docs/player/buffer-state). The default is `false`, but will become `true` in Remotion 5.0.diff --cc packages/media/src/video/video-for-rendering.tsxindex 37ad958f0a,078757b194..96aa6d3264--- a/packages/media/src/video/video-for-rendering.tsx+++ b/packages/media/src/video/video-for-rendering.tsx@@@ -83,6 -58,7 +58,8 @@@ export const VideoForRendering: React.Freturn;}+ const actualFps = playbackRate ? fps / playbackRate : fps;++const timestamp = frame / actualFps;const durationInSeconds = 1 / actualFps;