🎥 Make videos programmatically with React
added docs for return value
Apoorv Kansalc226ed595f68
diff --git a/packages/docs/docs/renderer/render-media.md b/packages/docs/docs/renderer/render-media.mdindex 0909d2a83e..093e5d3a5b 100644--- a/packages/docs/docs/renderer/render-media.md+++ b/packages/docs/docs/renderer/render-media.md@@ -366,6 +366,10 @@ Using this feature is discouraged. Before using it, we want to make you aware ofBefore you use this hack, reach out to the Remotion team on [Discord](https://remotion.dev/discord) and ask us if we are open to implement the feature you need in a clean way - we often do implement new features quickly based on users feedback.:::+## Return Value++Returns a promise that resolves to an object with keys `buffer` and `slowestFrames`. `slowestFrames` is an array of 10 slowest frames in form of `{index:<Frame number>, time:<Time to render frame ms>}`. You can use this information to optimise your render times.+## See also- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/renderer/src/render-media.ts)