/// <summary>
 /// Sets the playback stage for each active PlayableItem
 /// </summary>
 private void SetPlaybackStage(PlayableItemPlayState stage)
 {
     foreach (PlayableItem playable in CurrentPlayableItems)
     {
         playable.PlayState = stage;
     }
 }
 /// <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);
     }
 }
 /// <summary>
 /// Sets the playback stage for each active PlayableItem
 /// </summary>
 private void SetPlaybackStage(PlayableItemPlayState stage)
 {
     foreach (PlayableItem playable in CurrentPlayableItems)
     {
         playable.PlayState = stage;
     }
 }
Exemplo n.º 4
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);
     }
 }