Skip to content

🎥 Make videos programmatically with React

Made durationInFrames optional

khalid ansari7df7d18a394b
diff --git a/packages/core/src/sequencing/index.tsx b/packages/core/src/sequencing/index.tsx
index 3a1a15c264..7ac2ee50f0 100644
--- a/packages/core/src/sequencing/index.tsx
+++ b/packages/core/src/sequencing/index.tsx
@@ -25,7 +25,7 @@ export const SequenceContext = createContext<SequenceContextType | null>(null);
export type SequenceProps = {
children: React.ReactNode;
from: number;
- durationInFrames: number;
+ durationInFrames?: number;
name?: string;
layout?: 'absolute-fill' | 'none';
showInTimeline?: boolean;
@@ -33,7 +33,7 @@ export type SequenceProps = {
export const Sequence: React.FC<SequenceProps> = ({
from,
- durationInFrames,
+ durationInFrames = Infinity,
children,
name,
layout = 'absolute-fill',