On Thu, 22 Feb 2024 17:16:42 GMT, n-gabe <d...@openjdk.org> wrote:

> There is a ConcurrentModificationException in MediaPlayer when removing a 
> MediaView from it. The root cause is that you can't iterate over a HashSet 
> with for (WeakReference<MediaView> vref : viewRefs) and removing items from 
> the collection by viewRefs.remove(vref); within this loop.

You may use this simple showcase: 
https://github.com/n-gabe/jfx-two-media-view-sample

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1377#issuecomment-2066097662

Reply via email to