From: Sweidan Omar Date: Wed, 12 Jan 2022 18:04:16 +0000 (+0000) Subject: #310 X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=e37fcd412d88060132067ed303bdf1902b485f70;p=mediacube.git #310 git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32727 --- diff --git a/client/DxPlay/Controls/VideoSpeedTrackbar.cs b/client/DxPlay/Controls/VideoSpeedTrackbar.cs new file mode 100644 index 00000000..0e2290ad --- /dev/null +++ b/client/DxPlay/Controls/VideoSpeedTrackbar.cs @@ -0,0 +1,25 @@ +using System.Windows.Forms; + +namespace DxPlay.Controls +{ + public class VideoSpeedTrackbar: TrackBar + { + private float[] mAvailableSpeeds= { + 0.25f, 0.5f, 1f, 2f, 3f, 5f + }; + + private float currentSpeed; + public float[] AvailableSpeeds + { + get { return mAvailableSpeeds; } + set { mAvailableSpeeds= value; } + } + + public float CurrentSpeed { get; set; } + public VideoSpeedTrackbar() { + this.Minimum = 1; + this.Maximum = 5; + this.Value = 3; + } + } +}