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