How to use the timeline-state-resolver-types.DeviceType.HYPERDECK function in timeline-state-resolver-types

To help you get started, we’ve selected a few timeline-state-resolver-types 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 / meteor / server / api / initiateDatabase.ts View on Github external
sourcesPath: 'Sapphire.Sources',
						rampMotorFunctionPath: '1.5.2'
					}
				},
				'settings.devices.abstract0': ((pd['settings'] || {})['devices'] || {})['abstract0'] || {
					type: PlayoutDeviceType.ABSTRACT,
					options: {
					}
				},
				'settings.devices.http0': ((pd['settings'] || {})['devices'] || {})['http0'] || {
					type: PlayoutDeviceType.HTTPSEND,
					options: {
					}
				},
				'settings.devices.hyperdeck0': ((pd['settings'] || {})['devices'] || {})['hyperdeck0'] || {
					type: PlayoutDeviceType.HYPERDECK,
					options: {
						host: '160.67.87.53',
						port: 9993
					}
				},
			}})
			// PeripheralDevices.update(pd._id, {$set: {
			// 	mappings: mappings
			// }})
		})
		_.each(((PeripheralDevices.findOne('initDBPlayoutDeviceParent') || {})['settings'] || {}).devices, (device, key) => {
github nrkno / tv-automation-server-core / meteor / server / databaseMigrationSystemSteps.ts View on Github external
validate: () => {
			let device = PeripheralDevices.findOne({type: PeripheralDeviceAPI.DeviceType.PLAYOUT})
			if (!device) return 'Playout-gateway not found'
			let settings = device.settings || {devices: {}} as PlayoutDeviceSettings

			let hyperdeck0 = settings.devices['hyperdeck0'] as PlayoutDeviceSettingsDeviceHyperdeck
			if (!hyperdeck0) return '"hyperdeck0" missing'
			// @ts-ignore
			if (!hyperdeck0.options) hyperdeck0.options = {}
			if (hyperdeck0.type !== PlayoutDeviceType.HYPERDECK) return 'Type is not "HYPERDECK"'
			if (!hyperdeck0.options.host) return 'Host is not set'
			if (!hyperdeck0.options.port) return 'Port is not set'

			return false
		},
		migrate: () => {
github nrkno / tv-automation-server-core / meteor / server / databaseMigrationSystemSteps.ts View on Github external
migrate: () => {
			let device = PeripheralDevices.findOne({type: PeripheralDeviceAPI.DeviceType.PLAYOUT})
			if (device) {
				// Set some default values:
				let hyperdeck0 = device.settings && device.settings.devices['hyperdeck0']
				if (!hyperdeck0) {
					logger.info(`Migration: Add PeripheralDevice.settings to ${device._id}: hyperdeck0`)
					PeripheralDevices.update(device._id, {$set: {
						'settings.devices.hyperdeck0': {
							type: PlayoutDeviceType.HYPERDECK,
							options: {
								host: '',
								port: 9993,
							}
						}
					}})
				}
			}
		},
		input: [{
github nrkno / tv-automation-server-core / meteor / server / databaseMigrationSystemSteps.ts View on Github external
assignHotkeysToGlobalAdlibs: false,
		unlimited: false,
		isHidden: true
	}),
	ensureSourceLayer({
		_id: 'studio0_ptz',
		_rank: 0,
		name: 'Robotics',
		type: SourceLayerType.CAMERA_MOVEMENT,
		onPGMClean: true,
		activateKeyboardHotkeys: '',
		assignHotkeysToGlobalAdlibs: false,
		unlimited: true
	}),
	ensureMapping('hyperdeck0', literal({
		device: PlayoutDeviceType.HYPERDECK,
		deviceId: 'hyperdeck0',
		mappingType: MappingHyperdeckType.TRANSPORT,
		lookahead: LookaheadMode.NONE,
	})),
	ensureMapping('ptz0_preset', literal({
		device: PlayoutDeviceType.PANASONIC_PTZ,
		deviceId: 'ptz0',
		mappingType: MappingPanasonicPtzType.PRESET,
		lookahead: LookaheadMode.WHEN_CLEAR,
	})),
	ensureMapping('ptz0_speed', literal({
		device: PlayoutDeviceType.PANASONIC_PTZ,
		deviceId: 'ptz0',
		mappingType: MappingPanasonicPtzType.PRESET_SPEED,
		lookahead: LookaheadMode.NONE,
	})),