Esempio n. 1
0
        private bool SetReplaySpeed(RelayStatusModel replayStatus, double replaySpeed)
        {
            if (replayStatus.PlayingStatus != PlayStatus.Play)
            {
                LogHelper.Default.Debug("设置回放速度失败,当前回放不处于播放状态中,无法设置播放速度");
                return(false);
            }

            if (!ValidateSettingReplaySpeed(replaySpeed))
            {
                return(false);
            }

            bool result = ReplayAdapter.SetReplaySpeed(replayStatus.PlayingHandle, replaySpeed);

            if (result)
            {
                replayStatus.PlayingSpeed = replaySpeed;
            }

            return(result);
        }