public string GetAudioCodec()
{
if (this.CurrentStatus != MediaStatus.Stopped)
{
MediaPlayer.StandardInput.WriteLine("get_audio_codec");
MediaPlayer.StandardInput.Flush();
// This is to give the HandleMediaPlayerOutputDataReceived enought time to process and set the currentPosition.
System.Threading.Thread.Sleep(100);
return this._getfileinfofilename;
}
return "";
}