Ejemplo n.º 1
0
 private static void xbmc_PlaybackSpeedChanged(object sender, XbmcPlayerPlaybackSpeedChangedEventArgs e)
 {
     Console.Out.WriteLine("Playback speed in {0} changed to {1}", e.Player.ToString(), e.Speed);
 }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
 private static void xbmc_PlaybackSpeedChanged(object sender, XbmcPlayerPlaybackSpeedChangedEventArgs e)
 {
     Console.Out.WriteLine("Playback speed in {0} changed to {1}", e.Player.ToString(), e.Speed);
 }