🎥 Make videos programmatically with React
Fix time of buffer indicator
Jonny Burger8df85e65c049
diff --git a/packages/studio/src/components/Editor.tsx b/packages/studio/src/components/Editor.tsxindex 043a5c7135..0b0789e5ca 100644--- a/packages/studio/src/components/Editor.tsx+++ b/packages/studio/src/components/Editor.tsx@@ -24,7 +24,8 @@ const background: React.CSSProperties = {const DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS = 300;export const BUFFER_STATE_DELAY_IN_MILLISECONDS =- typeof process.env.BUFFER_STATE_DELAY_IN_MILLISECONDS === 'undefined'+ typeof process.env.BUFFER_STATE_DELAY_IN_MILLISECONDS === 'undefined' ||+ process.env.BUFFER_STATE_DELAY_IN_MILLISECONDS === null? DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS: Number(process.env.BUFFER_STATE_DELAY_IN_MILLISECONDS);diff --git a/packages/studio/src/components/PlayPause.tsx b/packages/studio/src/components/PlayPause.tsxindex 9d0d228266..855d2e35be 100644--- a/packages/studio/src/components/PlayPause.tsx+++ b/packages/studio/src/components/PlayPause.tsx@@ -258,6 +258,7 @@ export const PlayPause: React.FC<{const onBuffer = () => {requestAnimationFrame(() => {+ stopped = false;timeout = setTimeout(() => {if (!stopped) {setShowBufferState(true);diff --git a/packages/studio/src/components/TopPanel.tsx b/packages/studio/src/components/TopPanel.tsxindex ac18a2bc59..e545156119 100644--- a/packages/studio/src/components/TopPanel.tsx+++ b/packages/studio/src/components/TopPanel.tsx@@ -53,11 +53,11 @@ export const useResponsiveSidebarStatus = (): 'collapsed' | 'expanded' => {};export const TopPanel: React.FC<{- readOnlyStudio: boolean;- onMounted: () => void;- size: Size | null;- drawRef: React.RefObject<HTMLDivElement>;- bufferStateDelayInMilliseconds: number;+ readonly readOnlyStudio: boolean;+ readonly onMounted: () => void;+ readonly size: Size | null;+ readonly drawRef: React.RefObject<HTMLDivElement>;+ readonly bufferStateDelayInMilliseconds: number;}> = ({readOnlyStudio,onMounted,