예제 #1
0
        public void Init(Device device)
        {
            _device = device;
            _device.PlaybackChanged += Device_PlaybackChanged;
            _device.CurrentIdChanged += Device_CurrentIdChanged;
            _device.Start();

            _updateTimer = new Timer(updateTimer_Elapsed, null, UpdateTimerIntervalMs, UpdateTimerIntervalMs);
        }
예제 #2
0
        public void Init(Device device)
        {
            _device = device;
            _device.PlaybackStart    += _device_PlaybackStart;
            _device.PlaybackProgress += _device_PlaybackProgress;
            _device.PlaybackStopped  += _device_PlaybackStopped;
            _device.Start();

            _updateTimer = new Timer(updateTimer_Elapsed, null, 30000, 30000);
        }
예제 #3
0
        public void Init(Device device)
        {
            _device = device;
            _device.PlaybackStart    += _device_PlaybackStart;
            _device.PlaybackProgress += _device_PlaybackProgress;
            _device.PlaybackStopped  += _device_PlaybackStopped;
            _device.MediaChanged     += _device_MediaChanged;
            _device.Start();

            _deviceDiscovery.DeviceLeft += _deviceDiscovery_DeviceLeft;
        }
예제 #4
0
        public void Init(Device device, TranscodeSettings[] transcodeSettings)
        {
            _transcodeSettings = transcodeSettings;
            _device = device;
            _device.PlaybackChanged += Device_PlaybackChanged;
            _device.CurrentIdChanged += Device_CurrentIdChanged;
            _device.Start();

            _updateTimer = new Timer(1000);
            _updateTimer.Elapsed += updateTimer_Elapsed;
            _updateTimer.Start();
        }
예제 #5
0
        public void Init(Device device, TranscodeSettings[] transcodeSettings)
        {
            _transcodeSettings        = transcodeSettings;
            _device                   = device;
            _device.PlaybackChanged  += Device_PlaybackChanged;
            _device.CurrentIdChanged += Device_CurrentIdChanged;
            _device.Start();

            _updateTimer          = new Timer(1000);
            _updateTimer.Elapsed += updateTimer_Elapsed;
            _updateTimer.Start();
        }
예제 #6
0
        public void Init(Device device)
        {
            _device = device;
            _device.PlaybackStart    += _device_PlaybackStart;
            _device.PlaybackProgress += _device_PlaybackProgress;
            _device.PlaybackStopped  += _device_PlaybackStopped;
            _device.Start();

            _ssdpHandler.MessageReceived += _SsdpHandler_MessageReceived;

            _updateTimer = new Timer(updateTimer_Elapsed, null, 60000, 60000);
        }
예제 #7
0
        public void Init(Device device)
        {
            _device = device;
            _device.PlaybackStart    += _device_PlaybackStart;
            _device.PlaybackProgress += _device_PlaybackProgress;
            _device.PlaybackStopped  += _device_PlaybackStopped;
            _device.MediaChanged     += _device_MediaChanged;
            _device.Start();

            _deviceDiscovery.DeviceLeft += _deviceDiscovery_DeviceLeft;

            _updateTimer = new Timer(updateTimer_Elapsed, null, 60000, 60000);
        }
예제 #8
0
        public void Init(Device device)
        {
            _device = device;
            _device.PlaybackStart += _device_PlaybackStart;
            _device.PlaybackProgress += _device_PlaybackProgress;
            _device.PlaybackStopped += _device_PlaybackStopped;
            _device.MediaChanged += _device_MediaChanged;
            _device.Start();

            _deviceDiscovery.DeviceLeft += _deviceDiscovery_DeviceLeft;

            _updateTimer = new Timer(updateTimer_Elapsed, null, 60000, 60000);
        }