protected void zoneManager_zonePlayStateChangedSink(string _zoneUDN, RendererPlayState _playState) { if (zonePlayStateChanged != null) { zonePlayStateChanged(_zoneUDN, _playState); } }
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; * }*/ }
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); } }
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); } }
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; } }
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; }*/ }
private void zonePlayStateChangedSink(String _zoneUDN, RendererPlayState _playState) { if (zonePlayStateChanged != null) this.zonePlayStateChanged(_zoneUDN, _playState); }