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.
精彩评论