Exemplo n.º 1
0
 public void SeekPercentage(int progress)
 {
     if (_parent.IsConnected())
     {
         _parent.AsyncIPimpCommand(new CommandInfoIPimp {
             Action = "seekpercentage", Value = Convert.ToString(progress, CultureInfo.InvariantCulture)
         });
     }
 }
Exemplo n.º 2
0
 public void PlayMovie(ApiMovie video)
 {
     if (video == null)
     {
         return;
     }
     if (!_parent.IsConnected())
     {
         return;
     }
     if (video.IdFile == 0)
     {
         _parent.AsyncIPimpCommand(new CommandInfoIPimp {
             Action = "playmovie", Filter = video.IdMovie.ToString(CultureInfo.InvariantCulture), Value = "force", Tracks = "no"
         });
     }
     if (video.IdFile == 1)
     {
         _parent.AsyncIPimpCommand(new CommandInfoIPimp {
             Action = "playmovingpicture", Filter = video.IdMovie.ToString(CultureInfo.InvariantCulture), Value = "force", Tracks = "no"
         });
     }
 }
Exemplo n.º 3
0
 public void Quit()
 {
     _parent.AsyncIPimpCommand(new CommandInfoIPimp {
         Action = "poweroption", Value = "5"
     });
 }