ffmediaelement icon indicating copy to clipboard operation
ffmediaelement copied to clipboard

Black video when opening media with multiple players active

Open fmanso opened this issue 2 years ago • 1 comments

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

  • [ ] Bug
  • [ ] Feature Request
  • [ ] Question
  • [ x] Not sure

Version Information

  • [X ] NuGet Package 4.4.350
  • [X] FFMPEG ffmpeg-n4.4-latest-win64-lgpl-shared-4.4

Sorry to not be able to share any reproducible code.

fmanso avatar Jul 07 '23 07:07 fmanso

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.

MrBean2016 avatar Nov 14 '23 19:11 MrBean2016