Esempio n. 1
0
 protected void zoneManager_zonePlayStateChangedSink(string _zoneUDN, RendererPlayState _playState)
 {
     if (zonePlayStateChanged != null)
     {
         zonePlayStateChanged(_zoneUDN, _playState);
     }
 }
Esempio n. 2
0
 private void zonePlayStateChangedSink(String _zoneUDN, RendererPlayState _playState)
 {
     if (zonePlayStateChanged != null)
     {
         this.zonePlayStateChanged(_zoneUDN, _playState);
     }
 }
        protected void zoneTracklistSetPlayPauseButton(RendererPlayState _playState)
        {
            this.setTrackListControlFromZone(ZoneTracklistTrackControl, currentSelectedZoneUDN);

            /*if (_playState == RendererPlayState.Playing)
             * {
             *  ZoneTracklistTrackControl.TrackPaused = false;
             * }
             * else
             * {
             *  ZoneTracklistTrackControl.TrackPaused = true;
             * }*/
        }
Esempio n. 4
0
 public static TrackPlayState rendererPlayStateToTrackPlayState(RendererPlayState _playState)
 {
     switch (_playState)
     {
         case RendererPlayState.Playing:
             return TrackPlayState.Playing;
         case RendererPlayState.Stopped:
             return TrackPlayState.Stopped;
         case RendererPlayState.Paused:
             return TrackPlayState.Paused;
         case RendererPlayState.Transitioning:
             return TrackPlayState.Playing;
         default:
             return TrackPlayState.Stopped;
     }
 }
 private void rfController_zonePlayStateChangedSink(String _zoneUDN, RendererPlayState _playState)
 {
     if (this.MainGridStartup.Dispatcher.CheckAccess())
     {
         if (currentSelectedZoneUDN == _zoneUDN)
         {
             this.zoneTracklistSetTrackPlayingState();
             //this.zoneTracklistSetPlayPauseButton(_playState);
         }
     }
     else
     {
         this.MainGridStartup.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                                                new invoke_rfController_zonePlayStateChangedSink(this.rfController_zonePlayStateChangedSink), _zoneUDN, _playState);
     }
 }
Esempio n. 6
0
        static public TrackPlayState rendererPlayStateToTrackPlayState(RendererPlayState _playState)
        {
            switch (_playState)
            {
            case RendererPlayState.Playing:
                return(TrackPlayState.Playing);

            case RendererPlayState.Stopped:
                return(TrackPlayState.Stopped);

            case RendererPlayState.Paused:
                return(TrackPlayState.Paused);

            case RendererPlayState.Transitioning:
                return(TrackPlayState.Playing);

            default:
                return(TrackPlayState.Stopped);
            }
        }
Esempio n. 7
0
        protected virtual void playStateChangedSink(CpAVConnection connection, Object _playState)
        {
            String playStateString = (String)_playState;

            switch (playStateString)
            {
            case "PLAYING":
                playState = RendererPlayState.Playing;
                break;

            case "PAUSED_PLAYBACK":
                playState = RendererPlayState.Paused;
                break;

            case "TRANSITIONING":
                playState = RendererPlayState.Transitioning;
                break;

            case "STOPPED":
                playState = RendererPlayState.Stopped;
                break;
            }
        }
Esempio n. 8
0
 protected void zoneManager_zonePlayStateChangedSink(string _zoneUDN, RendererPlayState _playState)
 {
     if (zonePlayStateChanged != null) zonePlayStateChanged(_zoneUDN, _playState);
 }
 private void rfController_zonePlayStateChangedSink(String _zoneUDN, RendererPlayState _playState)
 {
     if (this.MainGridStartup.Dispatcher.CheckAccess())
     {
         if (currentSelectedZoneUDN == _zoneUDN)
         {
             this.zoneTracklistSetTrackPlayingState();
             //this.zoneTracklistSetPlayPauseButton(_playState);
         }
     }
     else
         this.MainGridStartup.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
            new invoke_rfController_zonePlayStateChangedSink(this.rfController_zonePlayStateChangedSink), _zoneUDN, _playState);
 }
 protected void zoneTracklistSetPlayPauseButton(RendererPlayState _playState)
 {
     this.setTrackListControlFromZone(ZoneTracklistTrackControl, currentSelectedZoneUDN);
     /*if (_playState == RendererPlayState.Playing)
     {
         ZoneTracklistTrackControl.TrackPaused = false;
     }
     else
     {
         ZoneTracklistTrackControl.TrackPaused = true;
     }*/
 }
Esempio n. 11
0
        protected virtual void playStateChangedSink(CpAVConnection connection, Object _playState)
        {
            String playStateString = (String)_playState;

            switch (playStateString)
            {
                case "PLAYING":
                    playState = RendererPlayState.Playing;
                    break;
                case "PAUSED_PLAYBACK":
                    playState = RendererPlayState.Paused;
                    break;
                case "TRANSITIONING":
                    playState = RendererPlayState.Transitioning;
                    break;
                case "STOPPED":
                    playState = RendererPlayState.Stopped;
                    break;
            }
        }
Esempio n. 12
0
 private void zonePlayStateChangedSink(String _zoneUDN, RendererPlayState _playState)
 {
     if (zonePlayStateChanged != null) this.zonePlayStateChanged(_zoneUDN, _playState);
 }