How to use the mos-connection.MosDuration function in mos-connection

To help you get started, we’ve selected a few mos-connection 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 / mockData / mosData.ts View on Github external
ServerPeripheralDeviceAPI.mosRoDelete(new MosString128('' + xmlApiData.roDelete))
	}
})

// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Note: The data below is copied straight from the test data in mos-connection
let xmlApiData = {
	'roCreate': literal({
		ID: new MosString128('96857485'),
		Slug: new MosString128('5PM RUNDOWN'),
		// DefaultChannel?: MosString128,
		EditorialStart: new MosTime('2009-04-17T17:02:00'),
		EditorialDuration: new MosDuration('00:58:25'), // @todo: change this into a real Duration
		// Trigger?: any // TODO: Johan frågar vad denna gör,
		// MacroIn?: MosString128,
		// MacroOut?: MosString128,
		// MosExternalMetaData?: Array,
		Stories: [
			literal({
				ID: new MosString128('5983A501:0049B924:8390EF2B'),
				Slug: new MosString128('COLSTAT MURDER'),
				Number: new MosString128('A5'),
				// MosExternalMetaData: Array
				Items: [
					literal({
						ID: new MosString128('0'),
						Slug: new MosString128('OLSTAT MURDER:VO'),
						ObjectID: new MosString128('M000224'),
						MOSID: 'testmos.enps.com',
github nrkno / tv-automation-server-core / meteor / server / api / ingest / mosDevice / __tests__ / mock-mos-data.ts View on Github external
roCreate: () => literal({
		'ID': new MOS.MosString128('SLENPS01;P_NDSL\\W;68E40DE6-2D08-487D-aaaaa'),
		'Slug': new MOS.MosString128('All effect1 into clip combinations'),
		'EditorialStart': new MOS.MosTime('2018-11-07T07:00:00,000Z'),
		'EditorialDuration': new MOS.MosDuration('0:9:0'),
		'MosExternalMetaData': [
			{
				'MosSchema': 'http://SLENPS01:10505/schema/enpsro.dtd',
				'MosPayload': {
					'AllowExternalMod': 1,
					'EndTime': '2018-09-07T07:09:00',
					'MOSroBlock': 'VIZ.DKOA.MOS;VIZ.NPRO.MOS;VIZ.TPRO.MOS',
					'MOSROStatus': 'PLAY',
					'MOSROStatusMOS': 'MOSART1.NDSL.MOS',
					'MOSROStatusTime': '2018-05-14T11:21:13',
					'MOSroStorySend': 'DPE01.NRK.MOS;OMNIBUS.NDSL.STORYMOS;SOFIE1.DKSL.MOS',
					'ProgramName': 'DKSL TV 1850',
					'RundownDuration': '09:00',
					'StartTime': '2018-10-07T07:00:00',
					'AnsvRed': 'DKSL',
					'AutoArchiveClips': 1,