import { Composition } from 'remotion' ; import phone from './assets/phone.mp4' ; import tablet from './assets/tablet.mp4' ; import { Scene } from './Scene' ; type Device = 'phone' | 'tablet' ; const deviceType = 'phone' ; export const RemotionVideo = ( ) => { return ( < > < Composition id = "Scene" component = { Scene } durationInFrames = { 300 } fps = { 30 } width = { 1280 } height = { 720 } defaultProps = { { videoSrc : deviceType === 'phone' ? phone : tablet , baseScale : deviceType === 'phone' ? 1 : 1.8 , } } /> < />); } ;