/// <summary>
 /// Waits for the PlayableItem to reach a given state and then returns
 /// </summary>
 public void WaitForPlayState(PlayableItemPlayState state)
 {
     while (PlayState != state)
     {
         Logger.ReportVerbose("Waiting for {0} to reach {1} state", DisplayName, state.ToString());
         Thread.Sleep(1000);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Waits for the PlayableItem to reach a given state and then returns
 /// </summary>
 public void WaitForPlayState(PlayableItemPlayState state)
 {
     while (PlayState != state)
     {
         Logger.ReportVerbose("Waiting for {0} to reach {1} state", DisplayName, state.ToString());
         Thread.Sleep(1000);
     }
 }