java利用播放器爆视频

xiaoxiao2021-02-28  105

@org.junit.Test public void test3(){ Runtime rn = Runtime.getRuntime(); Process p = null; try { p = rn.exec("E:/myVideo/wplayer.exe "+"C:/Users/Administrator/Desktop/测试/111.FlV"); } catch (Exception e) { System.out.println("Error exec!"); } }

下载,万能播放器,调用他的.exe,将视频目录加到后面,注意,中间一定要跟一个空格

转载请注明原文地址: https://www.6miu.com/read-35171.html

最新回复(0)