Fix:
By deafult, the mode parameter of fromFile is on PlayMode.BOTH (for video + audio).
As I was interested in video only and audio was introducing heavy lag, I changed the mode to PlayMode.VIDEO. The frames were available in time again, and the frame queue was cleared fast enough to not overflow and crash.
On that topic, I found the classes VideoStatistics and VideoPlayerConfiguration that are related to VideoPlayerFFMPEG.
Those could be data classes.
One benefit: They could be used in their “canonic” string representation. I found that to be useful during debugging this issue.
Thank you for sharing your discoveries! I have also in the past resorted to VIDEO only mode.
I guess we need to do some check why it’s not playing as smooth as it should, why sound causes issues, and avoid repeating the same message over and over. I like that in the console in browsers it can say indicate that the message was printed multiple times.