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); }
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); }
public void Answer() { Send("answer video"); Microphones.Unmute(); }