import { Integration } from '../../IntegrationsManager';

var Integration: Integration = {
	name: 'Wirecast',
	description: 'Control your Wirecast via our Wirecast-Bridge application.',
	main: require('./wirecast'),
	actions: [
		{
			id: 'go',
			name: 'Go'
		},
		{
			id: 'setLiveByName',
			name: 'Set shot live'
		},
		{
			id: 'clearIfLive',
			name: 'Clear shot if live'
		},
		{
			id: 'transitionSpeed',
			name: 'Set transition speed'
		},
		{
			id: 'clearLayer',
			name: 'Clear a layer'
		},
		{
			id: 'multiShot',
			name: 'Multi shot'
		},
		{
			id: 'setBroadcasting',
			name: 'Set broadcasting state'
		},
		{
			id: 'setRecording',
			name: 'Set recording state'
		},
		{
			id: 'setAutoLive',
			name: 'Set autolive state'
		}
	],
	connections: [
		{
			name: 'Wirecast-Bridge',
			type: 'wirecast-bridge',
			message:
				"This connection requires the 'Undecked Wirecast Bridge' tool to be running on the same machine as Wirecast. This tool allows Undecked to control various Wirecast features over the network.",
			link: {
				address: 'http://www.morphix.productions',
				title: 'Get the Wirecast Bridge'
			},
			fields: [
				{ id: 'ip', name: 'IP Address', type: 'text' },
				{ id: 'port', name: 'Port', type: 'number', value: 6060 }
			]
		}
	]
};

module.exports = Integration;
