How to use the superfly-timeline.TriggerType.ABSOLUTE function in superfly-timeline

To help you get started, we’ve selected a few superfly-timeline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nrkno / tv-automation-server-core / _templatedocumentation / mosData / segment_opening.ts View on Github external
content: literal({
				filename: 'vignett.mp4',
				path: '', // let Jan explain & decide
				firstWords: '', // none
				lastWords: '', // none
				// proxyPath?: '', // [todo] implement proxy for scrubbing in UI
				// thumbnail?: '', // [todo] implement proxy for scrubbing in UI
				loop: false,
				sourceDuration: 5, // [todo] check with Jan what this does
				// metadata?: none
				timelineObjects: [
					literal({
						_id: 'vignettObj',
						deviceId: '',
						trigger: {
							type: TriggerType.ABSOLUTE,
							value: 'now'
						},
						duration: 30, // todal duration of file (including tailing bed)
						LLayer: 'casparcg_player_vignett',
						content: {
							// objects?: Array
							// keyframes?: Array
							type: TimelineContentType.VIDEO,
							attributes: {
								file: 'vignett.mp4',
								loop: false
								// seek?: number
								// videoFilter?: string
								// audioFilter?: string
							}
							// transitions?: {
github nrkno / tv-automation-server-core / _templatedocumentation / mosData / segment_opening.ts View on Github external
autoNext: false,
		metaData: story.MosExternalMetaData,
		// status: [todo: check where we get this from, it's not in roFullStatus
		expectedDuration: 0,
		slug: ''
		//   startedPlayback?: number
		//   duration?: number
	}),
		literal({
			_id: '',
			mosId: '',
			segmentLineId: '',
			runningOrderId: '',
			name: '',
			trigger: {
				type: TriggerType.ABSOLUTE,
				value: 'now' 
			},
			status: RundownAPI.LineItemStatusCode.OK, // ?
			sourceLayerId: 'studio0_vignett',
			outputLayerId: 'pgm0',
			expectedDuration: 5, // hard-coded, using mosartVariant, 
			duration: 5, // same as expectedDuration
			disabled: false,
			//transitions?: {
				//inTransition?: TimelineTransition
				//outTransition?: TimelineTransition
			// },
			content: literal({
				filename: 'vignett.mp4',
				path: '', // let Jan explain & decide
				firstWords: '', // none