private void ShowChannelOperation(object sender, Updates.PlayerStateEventArgs e) { if (ChannelOutOfBounds(e.ChannelId)) { return; } var chan = _channels[e.ChannelId]; switch (e.State) { case PlaybackState.Playing: chan.ShowPlay(); timeLine.Lock(e.ChannelId); break; case PlaybackState.Paused: chan.ShowPause(); timeLine.Unlock(e.ChannelId); break; case PlaybackState.Stopped: chan.ShowStop(); timeLine.Unlock(e.ChannelId); break; } }
private void HandleChannelStateRequest(object sender, Updates.PlayerStateEventArgs e) { _controllers.ControllerFor(e.ChannelId).SetState(e.State); }