wpf_player.AudioPlayerModel.restartStream C# (CSharp) Method

restartStream() private method

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
return 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");
        }