Video Kiosk Schedule XML File Reference Guide



Video Kiosk – Android supports a playback schedule in XML format

Schedule XML File Reference Guide

<events>
</events>
A list of all playback events Required
<event>
</event>
A single playback event Required for event
<week>
</week>
Events occurs on multiple days of the week. Define days using the string “SMTWTFS”, using the letter to include the day and a “-“ to skip the day. Use all 7 characters or the event will be ignored. Use either <week> or <dayofweek> for each event, not both
<dayofweek>
</dayofweek>
Event occurs for a single day

Valid Values:
Sun
Mon
Tue
Wed
Thu
Fri
Sat

Use either <week> or <dayofweek> for each event, not both
<starttime>
</starttime>
The time the event starts (24hour clock, format “99:99”) Required for event
<endtime>
</endtime>
The time the event ends (24hour clock, format “99:99”) Required for event
<playlist>
</playlist>
A playlist to use for this event Optional
<path>
</path>
A path to use for this event Optional

 

Video Kiosk .schedule file examples

The week tag is used to define the same event occurring on multiple days of the week, using a string of the form SMTWTFS, where each day of the week uses the first letter of the days name.  If you want the event to occur on a day, use the letter for the day’s name. If you want to skip a day, use a “-“ instead of the first letter of the day’s name. It’s important that the string always contains all 7 characters.  If you use any other number of characters, the event will be ignored.

For example,

  • An event that occurs Monday through Friday would use the string “-MTWTF-“
  • An event that occurs only on the weekend would use the string “S—–S”
  • An event that occurs on Monday, Wednesday and Friday would use the string “-M-W-F-“

Here is an example of an XML file that contains two events. It will do the following:

  • It will turn on the display and display the morning playlist weekday mornings from 06:00 to 11:59 and then turn off the display
  • It will turn on the display and display the afternoon playlist every afternoon from 12:00 to 20:59 and then turn off the display

 

<?xml version=”1.0″ encoding=”UTF-8″?>
<events>
       <event>
              <week>-MTWTF-</week>
              <starttime>06:00</starttime>
              <endtime>11:59</endtime>
              <playlist>morning.m3u8</playlist>
       </event>
       <event>
              <week>SMTWTFS</week>
              <starttime>12:00</starttime>
              <endtime>20:59</endtime>
              <playlist>afternoon.m3u8</playlist>
       </event>
</events>

 

The dayofweek tag is used to define an event occurring on one day of the week. The values to use for the days of the week are:

Sun,
Mon
Tue
Wed
Thu
Fri
Sat

For example, an event that occurs each Monday would use the string “Mon“

Here is an example of an XML file that contains two events. It will do the following:

  • It will turn on the display and display the morning playlist Monday mornings from 06:00 to 11:59 and then turn off the display
  • It will turn on the display and display the afternoon playlist Thursday afternoons from 12:00 to 20:59 and then turn off the display

 

<?xml version=”1.0″ encoding=”UTF-8″?>
<events>
       <event>
              <dayofweek>Mon</dayofweek>
              <starttime>06:00</starttime>
              <endtime>11:59</endtime>
              <playlist>morning.m3u8</playlist>
       </event>
       <event>
              <dayofweek>Thu</dayofweek>
              <starttime>12:00</starttime>
              <endtime>20:59</endtime>
              <playlist>afternoon.m3u8</playlist>
       </event>
</events>

 

 

Resources

Click here to Download a sample Schedule XML File
How to Create a Schedule XML File


More Information

Buy it now
$14.95 / device

Get it on Google Play

Download the
FREE trial

Download Now