public void SendMediaState(MediaStateMessage message = null) { var mediaState = message ?? new MediaStateMessage { SongId = this.CurrentMedia?.Id, State = (PlayState)(int)_windowsMediaPlayer.playState }; SignalRConnection.Notify(new Message <MediaStateMessage>(mediaState, MessageType.MediaStateMessage)); }
public void SendTrackDetails(MediaState mediaState) { SignalRConnection.Notify(new Message <MediaState>(mediaState, MessageType.TrackDetails)); }
private void SendTimespan(TrackTimespan timeSpan) { SignalRConnection.Notify(new Message <TrackTimespan>(timeSpan, MessageType.ProgressTimer)); }