开发者

How to embed VLC into a java project in eclipse

开发者 https://www.devze.com 2023-02-03 19:33 出处:网络
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

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

精彩评论

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

关注公众号