Esempio n. 1
0
        private bool DirectlySetReplayPosition(RelayStatusModel replayStatus, DateTime replayTime)
        {
            if (replayStatus.PlayingStatus == PlayStatus.Pause)
            {
                ResumeReplay(replayStatus.PlayingScreenHandle);
                Thread.Sleep(200);
            }

            bool result = ReplayAdapter.SetReplayPositon(replayStatus.PlayingHandle, replayTime);

            if (result)
            {
                replayStatus.PlayingStatus = PlayStatus.Play;
            }

            return(true);
        }