javafx UNKNOWN duration on Media object

后端 未结 2 381
没有蜡笔的小新
没有蜡笔的小新 2021-01-12 20:53

I am a newbie to both Java and JavaFX, I\'ve spent the last couple years developing on Python with QT, and I am now developing in Java and JavaFX.

I am developing a

2条回答
  •  一整个雨季
    2021-01-12 21:32

    It looks like the Media needs some time to get fully initialized. Add a Thread sleep beforebthe getDuration line and try again!

提交回复
热议问题