Ejemplo n.º 1
0
        public void OnPlaybackStateChanged(RemoteControlPlayState state)
        {
            PlaybackState = state;
            MusicStatus   = state;
            Log.Info("LiveDisplay", "Music state is" + state);
            OnMediaPlaybackChanged(new MediaPlaybackStateChangedKitkatEventArgs
            {
                PlaybackState = state
            });
            switch (state)
            {
            case RemoteControlPlayState.Playing:
                if (requestedWidgetStart == false)
                {
                    WidgetStatusPublisher.RequestShow(new WidgetStatusEventArgs {
                        Show = true, WidgetName = "MusicFragment", Active = true
                    });
                    requestedWidgetStart = true;
                }
                break;

            case RemoteControlPlayState.Paused:
                break;
            }
        }
Ejemplo n.º 2
0
 public void OnPlaybackStateChanged(RemoteControlPlayState state)
 {
     PlaybackState = state;
     MusicStatus   = state;
     Log.Info("LiveDisplay", "Music state is" + state);
     OnMediaPlaybackChanged(new MediaPlaybackStateChangedKitkatEventArgs
     {
         PlaybackState = state
     });
 }
Ejemplo n.º 3
0
        public void OnPlaybackStateChanged(RemoteControlPlayState state)
        {
            PlaybackState = state;
            MusicStatus   = state;
            Log.Info("LiveDisplay", "Music state is" + state);
            OnMediaPlaybackChanged(new MediaPlaybackStateChangedKitkatEventArgs
            {
                PlaybackState = state
            });
            switch (state)
            {
            case RemoteControlPlayState.Playing:
                MusicPlaying?.Invoke(null, EventArgs.Empty);
                break;

            case RemoteControlPlayState.Paused:
                MusicPaused?.Invoke(null, EventArgs.Empty);
                break;
            }
        }
Ejemplo n.º 4
0
 public void OnClientPlaybackStateUpdate([GeneratedEnum] RemoteControlPlayState state, long stateChangeTimeMs, long currentPosMs, float speed)
 {
     musicControllerKitkat.OnPlaybackStateChanged(state);
 }
Ejemplo n.º 5
0
 public void OnClientPlaybackStateUpdateSimple([GeneratedEnum] RemoteControlPlayState stateSimple)
 {
     musicControllerKitkat.OnPlaybackStateChanged(stateSimple);
 }