How to use the mos-connection.MosString128 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 / api / ingest / mosDevice / __tests__ / mock-mos-data.ts View on Github external
'ID': new MOS.MosString128('ro1;s2;p1'),
				'Slug': new MOS.MosString128('SEGMENT2;PART1'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s2;p2'),
				'Slug': new MOS.MosString128('SEGMENT2;PART2'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s3;p1'),
				'Slug': new MOS.MosString128('SEGMENT3;PART1'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s3;p2'),
				'Slug': new MOS.MosString128('SEGMENT3;PART2'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s4;p1'),
				'Slug': new MOS.MosString128('SEGMENT2;PART3'), // To check that segment parsing works right when split
				'Items': []
			},
		]
	}),
	segmentIdMap: () => [
github nrkno / tv-automation-server-core / meteor / server / api / ingest / mosDevice / __tests__ / mock-mos-data.ts View on Github external
'Slug': new MOS.MosString128('SEGMENT2;PART2'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s3;p1'),
				'Slug': new MOS.MosString128('SEGMENT3;PART1'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s3;p2'),
				'Slug': new MOS.MosString128('SEGMENT3;PART2'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s4;p1'),
				'Slug': new MOS.MosString128('SEGMENT2;PART3'), // To check that segment parsing works right when split
				'Items': []
			},
		]
	}),
	segmentIdMap: () => [
github nrkno / tv-automation-server-core / meteor / server / mockData / mosData.ts View on Github external
Slug: new MosString128('5PM RUNDOWN'),
		// DefaultChannel?: new MosString128(''),
		EditorialStart: new MosTime('2009-04-17T17:02:00'),
		EditorialDuration: new MosDuration('00:58:25')
		// Trigger?: any // TODO: Johan frågar vad denna gör
		// MacroIn?: new MosString128(''),
		// MacroOut?: new MosString128(''),
		// MosExternalMetaData?: Array
	}),
	'roElementStat_ro': literal({
		ID: new MosString128('5PM'),
		Status: IMOSObjectStatus.MANUAL_CTRL,
		Time: new MosTime('2009-04-11T14:13:53')
	}),
	'roElementStat_story': literal({
		RunningOrderId: new MosString128('5PM'),
		ID: new MosString128('HOTEL FIRE'),
		Status: IMOSObjectStatus.PLAY,
		Time: new MosTime('1999-04-11T14:13:53')
	}),
	'roElementStat_item': literal({
		RunningOrderId: new MosString128('5PM'),
		StoryId: new MosString128('HOTEL FIRE '),
		ID: new MosString128('0'),
		ObjectId: new MosString128('A0295'),
		Channel: new MosString128('B'),
		Status: IMOSObjectStatus.PLAY,
		Time: new MosTime('2009-04-11T14:13:53')
	}),
	'roReadyToAir': literal({
		ID: new MosString128('5PM'),
		Status: IMOSObjectAirStatus.READY
github nrkno / tv-automation-server-core / meteor / server / mockData / mosData.ts View on Github external
}),
	'roElementAction_insert_story_Action': literal({
		RunningOrderID: new MosString128('5PM'),
		StoryID: new MosString128('2')
	}),
	'roElementAction_insert_story_Stories': [
		literal({
			ID: new MosString128('17'),
			Slug: new MosString128('Barcelona Football'),
			Number: new MosString128('A2'),
			// MosExternalMetaData?: Array,
			Items: [
				literal({
					ID: new MosString128('27'),
					// Slug?: new MosString128(''),
					ObjectID: new MosString128('M73627'),
					MOSID: 'testmos',
					// mosAbstract?: '',
					Paths: [
						{Type: IMOSObjectPathType.PATH, Description: 'MPEG2 Video', Target: '\\server\media\clip392028cd2320s0d.mxf'},
						{Type: IMOSObjectPathType.PROXY_PATH, Description: 'WM9 750Kbps', Target: 'http://server/proxy/clipe.wmv'},
						{Type: IMOSObjectPathType.METADATA_PATH, Description: 'MOS Object', Target: 'http://server/proxy/clipe.xml'}
					],
					EditorialStart: 0,
					EditorialDuration: 715,
					UserTimingDuration: 415
				}),
				literal({
					ID: new MosString128('28'),
					ObjectID: new MosString128('M73628'),
					MOSID: 'testmos',
					// mosAbstract?: '',
github nrkno / tv-automation-server-core / meteor / server / mockData / mosData.ts View on Github external
ID: new MosString128('27'),
					// Slug?: new MosString128(''),
					ObjectID: new MosString128('M73627'),
					MOSID: 'testmos',
					// mosAbstract?: '',
					Paths: [
						{Type: IMOSObjectPathType.PATH, Description: 'MPEG2 Video', Target: '\\server\media\clip392028cd2320s0d.mxf'},
						{Type: IMOSObjectPathType.PROXY_PATH, Description: 'WM9 750Kbps', Target: 'http://server/proxy/clipe.wmv'},
						{Type: IMOSObjectPathType.METADATA_PATH, Description: 'MOS Object', Target: 'http://server/proxy/clipe.xml'}
					],
					EditorialStart: 0,
					EditorialDuration: 715,
					UserTimingDuration: 415
				}),
				literal({
					ID: new MosString128('28'),
					ObjectID: new MosString128('M73628'),
					MOSID: 'testmos',
					// mosAbstract?: '',
					EditorialStart: 0,
					EditorialDuration: 315
				})
			]
		})
	],
	'roElementAction_insert_item_Action': literal({
		RunningOrderID: new MosString128('5PM'),
		StoryID: new MosString128('2'),
		ItemID: new MosString128('23')
	}),
	'roElementAction_insert_item_Items': [
		literal({
github nrkno / tv-automation-server-core / meteor / server / api / ingest / mosDevice / __tests__ / mock-mos-data.ts View on Github external
'Regionalsend': 'SL',
					'LocalStartTime': '2018-10-07T07:00:00',
					'ENPSItemType': 2,
					'roLayout': 'PageNum_450|RowStatus_150|Slug_1920|SegStatus_210|Segment_2595|mosartType_1110|mosartVariant_1290|mosartTransition_825|ip1_460|ip2_535|MOSObjSlugs_8295|Estimated_555|Actual_570|MOSItemDurations_630|Float_600|Tekniske-opplysninger_1875|FrontTime_1005|ElapsedTime_1000'
				},
				'MosScope': MOS.IMOSScope.PLAYLIST
			}
		],
		'Stories': [
			{
				'ID': new MOS.MosString128('ro1;s1;p1'),
				'Slug': new MOS.MosString128('SEGMENT1;PART1'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s1;p2'),
				'Slug': new MOS.MosString128('SEGMENT1;PART2'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s1;p3'),
				'Slug': new MOS.MosString128('SEGMENT1;PART3'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s2;p1'),
				'Slug': new MOS.MosString128('SEGMENT2;PART1'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s2;p2'),
				'Slug': new MOS.MosString128('SEGMENT2;PART2'),
github nrkno / tv-automation-server-core / meteor / server / api / ingest / mosDevice / __tests__ / mock-mos-data.ts View on Github external
'MosScope': MOS.IMOSScope.PLAYLIST
			}
		],
		'Stories': [
			{
				'ID': new MOS.MosString128('ro1;s1;p1'),
				'Slug': new MOS.MosString128('SEGMENT1;PART1'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s1;p2'),
				'Slug': new MOS.MosString128('SEGMENT1;PART2'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s1;p3'),
				'Slug': new MOS.MosString128('SEGMENT1;PART3'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s2;p1'),
				'Slug': new MOS.MosString128('SEGMENT2;PART1'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s2;p2'),
				'Slug': new MOS.MosString128('SEGMENT2;PART2'),
				'Items': []
			},
			{
				'ID': new MOS.MosString128('ro1;s3;p1'),
				'Slug': new MOS.MosString128('SEGMENT3;PART1'),
github nrkno / tv-automation-server-core / meteor / server / api / ingest / mosDevice / __tests__ / mock-mos-data.ts View on Github external
newItem: (id: string, slug: string) => literal({
		ID: new MOS.MosString128(id),
		Slug: new MOS.MosString128(slug),
	})
}
github nrkno / tv-automation-server-core / meteor / server / mockData / mosData.ts View on Github external
],
	'roElementAction_move_stories_Action': literal({
		RunningOrderID: new MosString128('5PM'),
		StoryID: new MosString128('2')
	}),
	'roElementAction_move_stories_Stories': [
		new MosString128('7'),
		new MosString128('12')
	],
	'roElementAction_move_items_Action': literal({
		RunningOrderID: new MosString128('5PM'),
		StoryID: new MosString128('2'),
		ItemID: new MosString128('12')
	}),
	'roElementAction_move_items_Items': [
		new MosString128('23'),
		new MosString128('24')
	],
	'roElementAction_delete_story_Action': literal({
		RunningOrderID: new MosString128('5PM')
	}),
	'roElementAction_delete_story_Stories': [
		new MosString128('3')
	],
	'roElementAction_delete_items_Action': literal({
		RunningOrderID: new MosString128('5PM'),
		StoryID: new MosString128('2')
	}),
	'roElementAction_delete_items_Items': [
		new MosString128('23'),
		new MosString128('24')
	],
github nrkno / tv-automation-server-core / meteor / server / mockData / mosData.ts View on Github external
})
	],
	'roElementAction_move_story_Action': literal({
		RunningOrderID: new MosString128('5PM'),
		StoryID: new MosString128('2')
	}),
	'roElementAction_move_story_Stories': [
		new MosString128('7')
	],
	'roElementAction_move_stories_Action': literal({
		RunningOrderID: new MosString128('5PM'),
		StoryID: new MosString128('2')
	}),
	'roElementAction_move_stories_Stories': [
		new MosString128('7'),
		new MosString128('12')
	],
	'roElementAction_move_items_Action': literal({
		RunningOrderID: new MosString128('5PM'),
		StoryID: new MosString128('2'),
		ItemID: new MosString128('12')
	}),
	'roElementAction_move_items_Items': [
		new MosString128('23'),
		new MosString128('24')
	],
	'roElementAction_delete_story_Action': literal({
		RunningOrderID: new MosString128('5PM')
	}),
	'roElementAction_delete_story_Stories': [
		new MosString128('3')
	],