Example #1
0
        static async Task Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            var discover = await SonosDiscovery.DiscoverSonos();

            var controller = new SonosControllerFactory().Create("192.168.8.105");

            var data = await controller.GetMediaInfoAsync();
        }
Example #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            shutUpButton.Enabled = true;
            stopButton.Enabled   = false;

            toolStripStatusLabel.Text = string.Empty;

            _discoveryService = new SonosDiscoveryService();
            _discoveryService.PlayersChanged += PlayersChanged;

            _deviceService = new SonosDeviceService();

            _sonosControllerFactory = new SonosControllerFactory();
        }
Example #3
0
 public SonosDevice(IDriverContext driverContext) : base(driverContext)
 {
     _sonosControllerFactory = new SonosControllerFactory();
 }