public static bool SetPlayingContent(string ip, string psk, BraviaPlayContent playContent)
        {
            try
            {
                BraviaParameter parameter = new BraviaParameter();
                parameter.Key       = "uri";
                parameter.IsLiteral = false;
                parameter.Value     = BraviaMaps.GetEnumMap(playContent);
                string method = "setPlayContent";

                Send(ip, psk, "avContent", method, "1.0", parameter);

                return(true);
            }
            catch (Exception e)
            {
                return(false);
            }
        }
Exemplo n.º 2
0
 public static string GetEnumMap(BraviaPlayContent playContent)
 {
     return(PlayContentMaps[playContent]);
 }