开发者

How to embed VLC into a java project in eclipse

In my java project, I download a video from the website and want to play it开发者_运维百科 by VLC. How can I make it?


I know that it is very late to answer, but it is to help others who are facing the same problem. You can excute it by using :

ProcessBuilder p=new ProcessBuilder("C:\\Program Files\\VideoLAN\\VLC\\vlc.exe","new.avi");
p.start();

ProcessBuilder is used to create operating system processes, start() starts the process. This will play particular file in vlc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜