예제 #1
0
 // GET: /Action/GoChromecastAudio
 public ActionResult GoChromecastAudio()
 {
     Running.StartStream("Chromecast");
     Receiver.SelectChromecastInput();
     Receiver.SelectRoomsOutput();
     Screen.SetScreenDisplayMode(0);
     return(Content(""));
 }
예제 #2
0
 // GET: /Action/GoChromecast
 public ActionResult GoChromecast()
 {
     Screen.EnsureScreenOn();
     Running.StartStream("Chromecast");
     Receiver.SelectChromecastInput();
     Receiver.SelectTVOutput();
     return(Content(""));
 }
예제 #3
0
 // GET: /Action/GoRoku
 public ActionResult GoRoku()
 {
     Roku.KeyPress("Home");
     Screen.EnsureScreenOn();
     Running.StartStream("Roku");
     Receiver.SelectRokuInput();
     Receiver.SelectTVOutput();
     return(Content(""));
 }
예제 #4
0
 // GET: /Action/GoPrime
 public ActionResult GoPrime()
 {
     Screen.EnsureScreenOn();
     Running.StartStream("Prime");
     Receiver.SelectComputerInput();
     Receiver.SelectTVOutput();
     DesktopClient.LaunchProgram("Prime", null);
     return(Content(""));
 }
예제 #5
0
 // GET: /Action/GoSmart
 public ActionResult GoSmart()
 {
     Screen.EnsureScreenOn(false);
     Running.StartStream("SmartTv");
     Screen.WaitForScreenOn();
     Receiver.SelectTvInput();
     Receiver.SelectTVOutput();
     Samsung.SendKey("CONTENTS");
     return(Content(""));
 }
예제 #6
0
 // GET: /Action/GoLogFire
 public ActionResult GoLogFire()
 {
     Screen.EnsureScreenOn();
     if (Running.RunningProgram != "Music" && Running.RunningProgram != "Spotify")
     {
         Running.StartStream("LogFire");
     }
     Receiver.SelectComputerInput();
     DesktopClient.LaunchProgram("LogFire", null);
     return(Content(""));
 }
예제 #7
0
        // GET: /Action/StartStream
        public ActionResult StartStream()
        {
            Screen.EnsureScreenOn(Running.RunningProgram != "SmartTv");
            var streamProgram = "";

            switch (Running.RunningProgram)
            {
            case "LogFire":
            case "Chromecast":
            case "Roku":
            case "SmartTv":
            case "Curzon":
            case "Prime":
            case "Music":
            case "Spotify":
                streamProgram = Running.RunningProgram;
                break;
            }
            Running.StartStream(streamProgram);
            Receiver.TurnOn();
            return(Content(""));
        }