How Play ogg files in javafx?

前端 未结 3 1530
一生所求
一生所求 2021-01-26 12:24

i use AudioClip class for playing ogg files but it says MEDIA_UNSUPPORTED .Is there any other libraries in javafx to play ogg files ?

相关标签:
3条回答
  • 2021-01-26 12:32

    JavaFX 8 contains no libraries for playing ogg files.

    0 讨论(0)
  • 2021-01-26 12:41

    I found a solution to this, worked for me

    Check here: https://github.com/nnttoo/OggJavaPlayer

    0 讨论(0)
  • 2021-01-26 12:49

    I don't think it is currently supported.

    See the Javadoc for supported media types:

    http://docs.oracle.com/javase/8/javafx/api/javafx/scene/media/package-summary.html

    Please add a comment here: https://javafx-jira.kenai.com/browse/RT-18009

    Edit:

    what about javaFX 2 ?

    http://docs.oracle.com/javafx/2/api/javafx/scene/media/package-summary.html

    0 讨论(0)
提交回复
热议问题