protected void AVTransportURIChangedSink(CpAVConnection _connection) { this.writeLog(LogType.Info, String.Format("AVTransportUri '{1}' für Renderer '{0}' empfangen", udn, _connection.AVTransportUri)); // retrieve list for zone. we use the ZoneTitleList Manager Global.getZoneTitleListManager().retrieveListFromAvTransportUri(zoneUDN, _connection.AVTransportUri, _connection.AVTransportUriMetaData); this.getZone().trackListId = zoneUDN; }
protected override void trackPositionChangedSink(CpAVConnection _connection, string _duration, string _trackMetadata, string _absTime) { base.trackPositionChangedSink(_connection, _duration, _trackMetadata, _absTime); if (this.getZone() != null) { this.getZone().setTrackPositionChanged(_absTime); } }
protected override void playStateChangedSink(CpAVConnection _connection, Object _playState) { base.playStateChangedSink(_connection, _playState); if (this.getZone() != null) { this.getZone().setPlayStateChanged(playState); } }
protected override void playModeChangedSink(CpAVConnection _connection, AvTransportPlayMode _playMode) { base.playModeChangedSink(_connection, _playMode); if (this.getZone() != null) { this.getZone().setPlayModeChanged(_playMode); } }
protected override void trackChangedSink(CpAVConnection _connection, uint _newTrack) { base.trackChangedSink(_connection, _newTrack); currentTrackIndex = Convert.ToInt32(_newTrack) - 1; this.updatePlayingTrackIndexOnTrackList(); if (this.getZone() != null) { this.getZone().setTrackChanged(_newTrack); } }
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 virtual void trackPositionChangedSink(CpAVConnection _connection, string duration, string trackMetadata, string absTime) { currentTrack.duration = duration; currentTrack.trackMetadata = trackMetadata; currentTrack.absTimePos = absTime; }
protected virtual void trackChangedSink(CpAVConnection _connection, uint _newTrack) { currentTrack.trackNr = _newTrack; }
protected virtual void playModeChangedSink(CpAVConnection _connection, AvTransportPlayMode _playMode) { playMode = _playMode; }