/// <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); } }