From: Sweidan Omar Date: Thu, 13 Jan 2022 20:05:32 +0000 (+0000) Subject: #310 X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=2c0ca84a724d61c7e30a7e3128d3ed52d24a1ba0;p=mediacube.git #310 git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32748 --- diff --git a/client/DxPlay/DxPlayer.cs b/client/DxPlay/DxPlayer.cs index 1bf7af4b..5e25cde6 100644 --- a/client/DxPlay/DxPlayer.cs +++ b/client/DxPlay/DxPlayer.cs @@ -74,10 +74,11 @@ namespace DxPlay { Control playerWindow; private PlayerGraph graph; + public PlayerGraph Graph { get; set; } private readonly DxPlaySettings settings; // Play an avi file into a window. Allow for snapshots. - // (Control to show video in, Avi file to play + // (Control to show video in, Avi file to play) public DxPlayer(Control hWin, ref MediaDescription mediaDesc, DxPlaySettings settings) { this.settings = settings; SeekTo = -1; @@ -273,7 +274,6 @@ namespace DxPlay { //logger.Debug("Current frame is {0} ({1}), media position is {2}, AVG frame time is {3}", frames, CurrentTC.ToString(), currentPosition, AvgTimePerFrame); } PlayEvent?.Invoke(); - } private int ReferenceTimeToFrames(long refTime) { @@ -556,5 +556,9 @@ namespace DxPlay { } while (true); } + public void SetPlaySpeed(float value) + { + Graph.MediaSeeking.SetRate(value); + } } }