how to control VLC by java

前端 未结 3 2056
有刺的猬
有刺的猬 2020-12-06 03:35

I want to run a program called VLC in java and control it while running, for example if user clicked on ❚❚ or ►► button, I do a s

3条回答
  •  醉话见心
    2020-12-06 03:48

    You are probably looking for VLCJ, this is a java wrapper for VLC. It allows you to embed VLC media player in a java application, and thus add all your personal controls.

    (Do note that for user applications this is fine, but the VLCJ library isn't perfect, you can have several problems pop up.)

    EDIT: For my project I've seen memory leaks and issues with long running programs (multiple instances for several hours). Especially the multiple instances doesn't work in combination with some compile options (which are on by default).

提交回复
热议问题