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); }
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); }
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; }
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(); }
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); }
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); }