Difference between revisions of "Screen on/off"

From A-SMIL.org
Jump to: navigation, search
(Created)
 
Line 9: Line 9:
 
   <body>
 
   <body>
 
     <excl repeatCount="indefinite">
 
     <excl repeatCount="indefinite">
 
+
         <seq id="foo" begin="wallclock(R/2011-01-01T09:00:00/P1D)" end="wallclock(R/2011-01-01T17:00:00/P1D)">
      <priorityClass>
 
         <seq begin="wallclock(R/2011-01-01T09:00:00/P1D)" end="wallclock(R/2011-01-01T17:00:00/P1D)">
 
 
           <!-- Playlist here -->
 
           <!-- Playlist here -->
         </seq>
+
         </seq>  
      </priorityClass>
+
<ref begin="0;foo.endEvent" src="adapi:blankScreen" dur="indefinite"/>  
 
 
      <priorityClass>
 
        <seq begin="0">
 
          <ref src="adapi:blankScreen" dur="indefinite" />
 
        </seq>
 
      </priorityClass>
 
 
 
 
     </excl>
 
     </excl>
 
   </body>
 
   </body>

Revision as of 11:47, 11 February 2011

You can put a display into power-saving, screen-saving stand-by mode by scheduling it to play a special A-SMIL media item adapi:blankScreen as the source of a <ref> item.

For example, to play a playlist from 9AM to 5PM everyday but have the display put in stand-by in other hours, you can use the following SMIL script.

<smil>
  <head/>
  <body>
    <excl repeatCount="indefinite">
        <seq id="foo" begin="wallclock(R/2011-01-01T09:00:00/P1D)" end="wallclock(R/2011-01-01T17:00:00/P1D)">
          <!-- Playlist here -->
        </seq> 
		<ref begin="0;foo.endEvent" src="adapi:blankScreen" dur="indefinite"/> 
    </excl>
  </body>
</smil>