🎥 Make videos programmatically with React
but timeline duration under flag
Jonny Burger627aff8bb101
diff --git a/packages/cli/src/editor/components/TimelineElements.tsx b/packages/cli/src/editor/components/TimelineElements.tsxindex adecd7a000..8518815add 100644--- a/packages/cli/src/editor/components/TimelineElements.tsx+++ b/packages/cli/src/editor/components/TimelineElements.tsx@@ -52,7 +52,9 @@ export const TimelineElements: React.FC = () => {>{track.sequences.map((s) => {// If a duration is 1, it is essentially a still and it should have width 0- const spatialDuration = s.sequence.duration - 1;+ const spatialDuration = Internals.FEATURE_FLAG_V2_BREAKING_CHANGES+ ? s.sequence.duration - 1+ : s.sequence.duration;return (<divkey={s.sequence.id}diff --git a/packages/core/src/internals.ts b/packages/core/src/internals.tsindex 354914c87f..6ae839796f 100644--- a/packages/core/src/internals.ts+++ b/packages/core/src/internals.ts@@ -42,7 +42,10 @@ import {DEFAULT_WEBPACK_CACHE_ENABLED,getWebpackCaching,} from './config/webpack-caching';-import {FEATURE_FLAG_FIREFOX_SUPPORT} from './feature-flags';+import {+ FEATURE_FLAG_FIREFOX_SUPPORT,+ FEATURE_FLAG_V2_BREAKING_CHANGES,+} from './feature-flags';import * as perf from './perf';import {getCompositionName, getIsEvaluation, getRoot} from './register-root';import {RemotionRoot} from './RemotionRoot';@@ -77,6 +80,7 @@ export const Internals = {DEFAULT_PIXEL_FORMAT,FEATURE_FLAG_FIREFOX_SUPPORT,DEFAULT_WEBPACK_CACHE_ENABLED,+ FEATURE_FLAG_V2_BREAKING_CHANGES,getBrowser,DEFAULT_BROWSER,getDefaultCrfForCodec,