1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Server/Actions/ActionCecStandbyTv.cs Sun Jul 24 20:36:07 2016 +0200
1.3 @@ -0,0 +1,26 @@
1.4 +using CecSharp;
1.5 +using SharpLib.Ear;
1.6 +using System;
1.7 +using System.Collections.Generic;
1.8 +using System.Linq;
1.9 +using System.Runtime.Serialization;
1.10 +using System.Text;
1.11 +using System.Threading.Tasks;
1.12 +
1.13 +namespace SharpDisplayManager
1.14 +{
1.15 + [DataContract]
1.16 + [AttributeAction(Id = "Cec.StandbyTv", Name = "CEC Standby TV", Description = "Standby TVs on your CEC HDMI network.")]
1.17 + class ActionCecStandbyTv : SharpLib.Ear.Action
1.18 + {
1.19 + public override void Execute()
1.20 + {
1.21 + if (Cec.Client.Static == null)
1.22 + {
1.23 + Console.WriteLine("WARNING: No CEC client installed.");
1.24 + }
1.25 +
1.26 + Cec.Client.Static.Lib.StandbyDevices(CecLogicalAddress.Tv);
1.27 + }
1.28 + }
1.29 +}