コード例 #1
0
 public PolycomGroupSeriesCodec(SystemBase system, IComPortDevice comPort)
 {
     _system             = system;
     _port               = new ComPortHandler(comPort);
     _port.DataReceived += OnReceive;
     Calls               = new Calls(this);
     Calls.CallChanged  += Calls_CallChanged;
     Microphones         = new Microphones(this);
     Cameras             = new Cameras(this);
     AddressBook         = new AddressBook(this);
     Meetings            = new CalendarMeetings(this);
 }
コード例 #2
0
 public PolycomGroupSeriesCodec(SystemBase system, string ipAddress, string password)
 {
     _system                = system;
     _ipAddress             = ipAddress;
     _password              = password;
     _socket                = new PolycomSocketHandler(ipAddress, 24);
     _socket.StatusChanged += SocketOnStatusChanged;
     _socket.ReceivedData  += OnReceive;
     Calls              = new Calls(this);
     Calls.CallChanged += Calls_CallChanged;
     Microphones        = new Microphones(this);
     Cameras            = new Cameras(this);
     AddressBook        = new AddressBook(this);
     Meetings           = new CalendarMeetings(this);
     if (_first)
     {
         return;
     }
     _first = true;
     CrestronConsole.AddNewConsoleCommand(Send, "CodecSend", "Send a test command to codec",
                                          ConsoleAccessLevelEnum.AccessOperator);
 }
コード例 #3
0
 public void Answer()
 {
     Send("answer video");
     Microphones.Unmute();
 }