Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 protected override void playModeChangedSink(CpAVConnection _connection, AvTransportPlayMode _playMode)
 {
     base.playModeChangedSink(_connection, _playMode);
     if (this.getZone() != null)
         this.getZone().setPlayModeChanged(_playMode);
 }
Ejemplo n.º 4
0
 protected override void playStateChangedSink(CpAVConnection _connection, Object _playState)
 {
     base.playStateChangedSink(_connection, _playState);
     if(this.getZone()!=null)
         this.getZone().setPlayStateChanged(playState);
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
 protected virtual void trackPositionChangedSink(CpAVConnection _connection, string duration, string trackMetadata, string absTime)
 {
     currentTrack.duration = duration;
     currentTrack.trackMetadata = trackMetadata;
     currentTrack.absTimePos = absTime;
 }
Ejemplo n.º 7
0
 protected virtual void trackChangedSink(CpAVConnection _connection, uint _newTrack)
 {
     currentTrack.trackNr = _newTrack;
 }
Ejemplo n.º 8
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;
            }
        }
Ejemplo n.º 9
0
 protected virtual void playModeChangedSink(CpAVConnection _connection, AvTransportPlayMode _playMode)
 {
     playMode = _playMode;
 }