Changing caputer device multiple times makes media element freeze.
I made combobox to select webcam, audio device list
and my code is this
if (Media.IsOpen)
await Media.Stop();
string resultUri = "";
if (String.IsNullOrEmpty(videoDevice) && string.IsNullOrEmpty(audioDevice))
return;
else if ( string.IsNullOrEmpty(audioDevice))
resultUri = $"device://dshow/?video={videoDevice}";
else if ( string.IsNullOrEmpty(videoDevice))
resultUri = $"device://dshow/?audio={audioDevice}";
else
resultUri = $"device://dshow/?audio={audioDevice}:video={videoDevice}";
System.Uri uri = new System.Uri(resultUri);
var a = await Media.Open(uri);
var b = await Media.Play();
Trace.WriteLine($"{a} / {b} ");
If i change video or audio device about 3~7 times
media element freeze
This is also Happen in Sample File.
Issue Categories
[v ] Bug
[ ] Feature Request
[ ] Question
[ ] Not sure
Version Information
[v ] NuGet Package 4.4.350
[ ] Build From Master branch, Commit Enter commit id. Example: 704c482
[ ] Build from Branch Name, Commit Enter commit id. Example: 704c482
[12:35.464 | ERR | FFmpeg.Log ] [dshow @ 00000220acb5acc0] real-time buffer [AVerMedia Live Gamer HD 2] [video input] too full or near too full (100% of size: 3041280 [rtbufsize parameter])! frame dropped!
Changing caputer device multiple times makes media element freeze.
I made combobox to select webcam, audio device list
and my code is this
If i change video or audio device about 3~7 times
media element freeze
This is also Happen in Sample File.
Issue Categories
Version Information
Steps to Reproduce
[ in sample program ]
Expected Results