private static void xbmc_PlaybackSpeedChanged(object sender, XbmcPlayerPlaybackSpeedChangedEventArgs e) { Console.Out.WriteLine("Playback speed in {0} changed to {1}", e.Player.ToString(), e.Speed); }
private void xbmcPlaybackSpeedChanged(object sender, XbmcPlayerPlaybackSpeedChangedEventArgs e) { if (e == null || e.Player == null) { return; } Logging.Log(LoggingArea, "Playback speed changed"); this.position = e.Position; this.length = e.Length; this.updateProgress(); if (e.Speed < 0) { this.display.SetText("Rewinding (" + (-e.Speed) + "x)", "Rewinding", (-e.Speed).ToString()); this.progressTimer.Stop(); } else if (e.Speed > 1) { this.display.SetText("Forwarding (" + e.Speed + "x)", "Rewinding", e.Speed.ToString()); this.progressTimer.Stop(); } else { this.update(); this.progressTimer.Start(); } }