wpf_player.AudioPlayerModel.restartStream C# (CSharp) 메소드

restartStream() 개인적인 메소드

This method resets all structure of the player related to the playback operation but does not modify the peer state (this way the peer keep downloading the file).
private restartStream ( ) : void
리턴 void
        private void restartStream()
        {
            NotifyPropertyChanged("Position");
            NotifyPropertyChanged("BufferPortion");
            localstream.WaitedPositionReached += resumePlay;
            localstream.PositionChanged += (sender, args) => { NotifyPropertyChanged("BufferPortion"); };
            peer.RestartFlow();
            BufferingState = true;
            NotifyPropertyChanged("PlayingState");
            startPhaseBuffering = true;
            localstream.WaitForMore();
            NotifyPropertyChanged("ResourceTag");
            NotifyPropertyChanged("Length");
            NotifyPropertyChanged("BigBufferSize");
            NotifyPropertyChanged("HasResource");
        }