unosquare / ffmediaelement

FFME: The Advanced WPF MediaElement (based on FFmpeg)
https://unosquare.github.io/ffmediaelement/
Other
1.17k stars 240 forks source link

Restarting bad streams / setting timeout #491

Closed Arestihub closed 4 years ago

Arestihub commented 4 years ago

Hello.

What is the intended way of reopening / reconnecting to streams that might not be working properly?

I am playing streams over RTP and checking the stream MediaState and DecodingBitRate every 10 seconds - if the MediaState says the stream is stopped stopped or the bitrate goes under a certain threshold I manually reopen the stream. This is done by calling the Close() and Open() functions.

The problem is, when watching multiple (sometimes faulty, behind a bad connection etc) streams simultaneously this seems to hog up a lot of memory. Is there some kind of a intended way of reopening streams? Can or should I use the ReadTimeout to my advantage somehow?

Issue Categories

Version Information

[ x] NuGet Package 4.1.310

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.