unosquare / ffmediaelement

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

Black video when opening media with multiple players active #647

Open fmanso opened 1 year ago

fmanso commented 1 year ago

Black video when opening media with multiple players active

I have an use case that involves having 4 or more MediaElement playing video files. Some video files ar MPEG2 and others are H264. While playing video, when changing media file for some MediaElement, the MediaElement goes black and plays nothing. If I change the media file again it starts working again. I couldnt manage to find reproducible steps, it appears to be random.

Is there any recommendation, or better practice, to implement this use case?

Issue Categories

Version Information

Sorry to not be able to share any reproducible code.

MrBean2016 commented 10 months ago

I have a similar application. What I have done is to create a component encapsulating a video player class with its own view model. So multiple instances share nothing on an instance level and they act completely independent . Maybe your implementation needs more separation? Difficult to answer.