// GET: /Action/GoChromecastAudio public ActionResult GoChromecastAudio() { Running.StartStream("Chromecast"); Receiver.SelectChromecastInput(); Receiver.SelectRoomsOutput(); Screen.SetScreenDisplayMode(0); return(Content("")); }
// GET: /Action/GoChromecast public ActionResult GoChromecast() { Screen.EnsureScreenOn(); Running.StartStream("Chromecast"); Receiver.SelectChromecastInput(); Receiver.SelectTVOutput(); return(Content("")); }
// GET: /Action/GoRoku public ActionResult GoRoku() { Roku.KeyPress("Home"); Screen.EnsureScreenOn(); Running.StartStream("Roku"); Receiver.SelectRokuInput(); Receiver.SelectTVOutput(); return(Content("")); }
// GET: /Action/GoPrime public ActionResult GoPrime() { Screen.EnsureScreenOn(); Running.StartStream("Prime"); Receiver.SelectComputerInput(); Receiver.SelectTVOutput(); DesktopClient.LaunchProgram("Prime", null); return(Content("")); }
// GET: /Action/GoSmart public ActionResult GoSmart() { Screen.EnsureScreenOn(false); Running.StartStream("SmartTv"); Screen.WaitForScreenOn(); Receiver.SelectTvInput(); Receiver.SelectTVOutput(); Samsung.SendKey("CONTENTS"); return(Content("")); }
// 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("")); }
// 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("")); }