This sample demonstrates how to use the PlaySound Element with the Timer Class to create a playback loop which does not use the PlayMedia Method and therefore is not reflected in the Windows Media Center user experience.
<Mcml xmlns="http://schemas.microsoft.com/2006/mcml">
<UI Name="Default">
<Locals>
<Timer Name="MyTimer" Interval="10000" Enabled="true" AutoRepeat="true"/>
</Locals>
<Rules>
<Rule>
<Conditions>
<Modified Source="[MyTimer.Tick]" InitialEvaluate="true"/>
</Conditions>
<Actions>
<!-- MyContent.wav is of a known length which -->
<!--is slightly shorter than the interval defined -->
<!--in the timer. -->
<PlaySound Sound="file://MyContent.wav"/>
</Actions>
</Rule>
</Rules>
<Content>
<Text Content="PlaySound + Timer" Color="White"/>
</Content>
</UI>
</Mcml>