<?xml version="1.0"?>
<configs>

	<!-- 
		
		defaultDuration:	duration if media duration <= 0 (NOTE: video 0 = use video length)
		
		NOTE: feed URLs can include the following variables :-
		      %%kioskid%%		- from registry
			  %%kioskdesc%%		- from registry
			  %%kioskname%%		- from registry
			  %%kioskloc%%		- from registry
			  %%adtype%% 		- from the plugin configs
		   
		
	-->
	<adverts defaultDuration="10">

		<!-- 
			
			this playlist will be used if nothing else can be found
			
			the plugin "defaultPlaylist" setting value is used as the node name, so you can have different default lists for full and banner
						
			NOTE: message will still be played but NOT interleaved with this list: this is a fall-back to when NOTHING else can be played!
			
		-->		
		<defaultfull>
		
			<!-- 
				 
				 adverts are in our generic playlist format (the one that the interfaces convert their sources to)
				 
				 see feed_documented.xml for advert description (with advert plugin source code)
				 				 
				 NOTE: media files are always relative to the media root folder				 
				 
				 NOTE: this is the analytics log string: "{ad description}/{content id}/{mediaData name}")
				       so make sure those elements are unique and meaningful
					   
				 NOTE: media id must be unique for synchronisation
				 				 				      				 	
			-->
			
			<advert 
				id="ADVERT-1"
				title="Logo"
				description="Default Advert 1"
				width="1080" 
				height="1920" 
				duration="5" 		
				priority="0">		
				<content id="Logo" default="false" start="" end="" startTime="00:00" endTime="23:59" week="1111111">		
					<media id="MEDIA-1" type="image" source="Never Send\Media\Project\malllogo.png" name="malllogo.png" />			
				</content>							
			</advert>
			
			<advert 
				id="ADVERT-2"
				title="Video"
				description="Default Advert 2"
				width="1080" 
				height="1920" 
				duration="5" 		
				priority="0">		
				<content id="ScreenSaver" default="false" start="" end="" startTime="00:00" endTime="23:59" week="1111111">		
					<media id="MEDIA-2" type="video" source="Never Send\Media\Project\screensaver.avi" name="screensaver.avi" />			
				</content>			
			</advert>
		
					
		</defaultfull>
		
		<!-- 
		
			doohad feed specific settings 
			(set the "feedId" in the plugin configs to point at this node)
			
			url: 				where to download the feed from (full path to feed)								
								see note at top for allowed variables
			frequencySecs:		how often to download and parse the feed 		
			delayDeleteMins: 	only delete unwanted media older than this			
			
		-->
		<doohad 
			xurl="http://localhost/doohadtest.rss" 
			url="https://doohad.com/rss?uid=%%kioskid%%" 			
			frequencySecs="900" 
			delayDeleteMins="1" 			
		/>
		
		
		<!-- 
		
			broadsign feed specific settings 
			(set the "feedId" in the plugin configs to point at this node)
			
			triggerMessage:	broadsign message								
			address:		socket address
			port: 			socket port
			udp: 			use udp

			NOTE: triggerMessage will have \r\n\r\n added automatically			
			
		-->		
		<broadsign 
			triggerMessage="<rc version=&quot;8&quot; id=&quot;1&quot; action=&quot;trigger&quot; trigger_category_id=&quot;231377483&quot;/>" 
			address="127.0.0.1" 
			port="2324" 
			udp="false" 
		/>
		
		
		<!-- 
		
			clear channel feed specific settings 
			(set the "feedId" in the plugin configs to point at this node)		
			
			url: 				url to download files from
								see note at top for allowed variables
								
								- the feed and media are all downloaded from the same url:
								  first the "feedFile" is downloaded
								  e.g. http://www.ccaadportal.com/adportal/published/ATL_DIRFULL/show.xml
								  then each file in that feed is downloaded form the same url
								  e.g. http://www.ccaadportal.com/adportal/published/ATL_DIRFULL/file1.png
								
		
								- clear channel has separate feeds for FULL and BANNER (in this ATL example at least)
								  so we use the %%adtype%% (set to FULL or BANNER) to get out two feeds:
								  http://www.ccaadportal.com/adportal/published/ATL_DIRFULL/
								  http://www.ccaadportal.com/adportal/published/ATL_DIRBANNER/				  
								  this is different from doohad which has one feed with both full/banner content. that uses adType in-code to determine whish ad is required.				 
																							
								- the ATL example below are not device specific.
                                  but their development example url was: 							https://adweb.ccaadportal.com/Pages/Publishing/GetViewFile.ashx?devicecd=TSA_BBLCD&filename=%%filename%%
								  if "devicecd" is required in future, just use one of the kiosk vars shown at top of this doc
								
			feedFile:			name of the feed file e.g. "show.xml"
			frequencySecs:		how often to download and parse the feed 		
			delayDeleteMins: 	only delete unwanted media older than this								
			
		-->
		<clearchannel
			url="http://www.ccaadportal.com/adportal/published/ATL_DIR%%adtype%%/%%filename%%" 			
			feedFile="show.xml"
			frequencySecs="900" 
			delayDeleteMins="1" 			
		/>		
		
		
		
		<!-- 
		
			admoni feed specific settings 
			(will be used if this node exists)
			
			** NOTE that admoni is NOT an advert feed
			** It supplies adverts to replace normal adverts in our standard feed that are marked as "filler" (e.g. from doohad)
    		
			urlContent:	API url to get the next bit of media to play (which is downloaded separately using the prefetch API)
						see note at top for allowed variables
						There are 2 methods: device and owner (preferred):
						https://neon.adomni.com/v0/integration/vast/v2_0/device/{device-key}
						https://neon.adomni.com/v0/integration/vast/v2_0/owner/{owner-key}?integrationKeys={integration-key}						
			
			urlPrefetch: API url to supply a list of media to download and cache ready to play when urlContent called
						 see note at top for allowed variables
						 There are 2 methods: device and owner (preferred):
						 https://neon.adomni.com/v0/integration/vast/v2_0/device/{device-key}/prefetch
						 https://neon.adomni.com/v0/integration/vast/v2_0/owner/{OWNER-KEY}/prefetch?integrationKeys={INTEGRATION-KEY}						
			
			prefetchFrequency (seconds): how often to prefetch the media
										 Docs say "Once per hour is common" i.e. 3600 seconds
								
			logPOC (bool): turn on proof of concept logging (to own loag file)
			               ONLY turn this of while testing!
			
		-->
		<adomni 
			xurlContent="https://neon.adomni.com/v0/integration/vast/v2_0/owner/sBwCKwZopxla4?integrationKeys=Acquire-001" 			
			xurlPrefetch="https://neon.adomni.com/v0/integration/vast/v2_0/owner/sBwCKwZopxla4/prefetch?integrationKeys=Acquire-001" 			
			urlContent="https://neon.adomni.com/v0/integration/vast/v2_0/owner/%%kioskloc%%?integrationKeys=%%kioskname%%" 			
			urlPrefetch="https://neon.adomni.com/v0/integration/vast/v2_0/owner/%%kioskloc%%/prefetch?integrationKeys=%%kioskname%%" 			
			prefetchFrequency="60"
			logPOC="true"
		/>


		<!-- 
		
			A list of attractors to play in-front of, or behind the adverts in the advert plugin
			(set the "attractorId" in the plugin configs to point at this node)

			adX,
			adY,
			adWidth,
			adHeight:	Position of the advert within the ad plugin
			            E.g. to move it so you can see an attractor that is behind the adverts
						Defaults to advert plugin size.
			
		
		-->
		<full_attractors
				adX="0"
				adY="96"
				adWidth="970"
				adHeight="1823"				
		>
		
			<!--
		
			An advert attractor
					
			onTop:			if true the attractor will be above adverts, otherwise it is behind (default=false)
			file:			name of the attractor media, within the project specific folder
			type:			of the attractor media e.g. "video", "videoalpha", "image", "web"
			x,
			y,
			width,
			height:			position of the attractor within the advert plugin. defaults to advert plugin size.
			animFreqMS:	    how often to animate the attractor (so, 0 for continous)
			animDistance:	how far to move the attractor when animating
			animDurationMS:	how long the attractor animation takes
			animType:		what attractor animation to use - "0"=none (default), "1"=bounce-left, "2"=bounce-right, "3"=bounce-up, "4"=bounce-down
		
			-->			
			<attractor
				onTop="true"
				file="attractor.png"
				type="image"
				x="500"
				y="1000"
				width="300"
				height="100"
				animFreqMS="1000"
				animDistance="30"
				animDurationMS="1000"
				animType="2"			
			/>
			
			<!--
				minimum settings for a non-animated attractor that sits behind the adverts 
				(remember to move the advert with "adX" etc. so you can see it!)
			-->
			<attractor				
				file="attractor.mp4"
				type="video"				
			/>
			
		</full_attractors>

	</adverts>

</configs>