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