Example #1
0
        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));
        }
Example #2
0
 public void SendTrackDetails(MediaState mediaState)
 {
     SignalRConnection.Notify(new Message <MediaState>(mediaState, MessageType.TrackDetails));
 }
Example #3
0
 private void SendTimespan(TrackTimespan timeSpan)
 {
     SignalRConnection.Notify(new Message <TrackTimespan>(timeSpan, MessageType.ProgressTimer));
 }