Ejemplo n.º 1
0
        public void Install()
        {
            // Check running as administrator
            if (!Utilities.IsAdministrator())
            {
                throw new UnsufficientPrivileges("You must run this application as an administrator");
            }

            VlcCommand.Install();
        }
Ejemplo n.º 2
0
        void SendCommand(VlcCommand command, string param)
        {
            // flush old stuff
            ReadTillEnd();

            string packet = Enum.GetName(typeof(VlcCommand), command).ToLower();

            if (param != null)
            {
                packet += " " + param;
            }
            packet += Environment.NewLine;

            var buffer = ASCIIEncoding.GetBytes(packet);

            client.GetStream().Write(buffer, 0, buffer.Length);
            client.GetStream().Flush();


            Trace.Write(packet);
        }
Ejemplo n.º 3
0
        void SendCommand(VlcCommand command, string param)
        {
            // flush old stuff
            ReadTillEnd();

            string packet = Enum.GetName(typeof(VlcCommand), command).ToLower();
            if (param != null)
            {
                packet += " " + param;
            }
            packet += Environment.NewLine;

            var buffer = ASCIIEncoding.GetBytes(packet);
            client.GetStream().Write(buffer, 0, buffer.Length);
            client.GetStream().Flush();

            Trace.Write(packet);
        }
Ejemplo n.º 4
0
 void SendCommand(VlcCommand command)
 {
     SendCommand(command, null);
 }
Ejemplo n.º 5
0
 void SendCommand(VlcCommand command)
 {
     SendCommand(command, null);
 }