/// <summary> /// Sets the song position inside the played song /// </summary> /// <param name="newSongPositionInMs">new position in milliSeconds</param> public void SetSongPosition(int newSongPositionInMs) { if ((DateTime.Now - _lastSetPositionCall).TotalMilliseconds < 500 || _mediaPlayer.IsPlaying() == false) { return; } _lastSetPositionCall = DateTime.Now; _mediaPlayer.SetSongPosition(newSongPositionInMs); }