use of com.cas.sim.tis.view.control.imp.vlc.VLCPlayer in project TeachingInSimulation by ScOrPiOzzy.
the class ResourceViewer method createVLCViewer.
/**
* 创建视频查看器
*/
private void createVLCViewer() {
HTTPUtils utils = SpringUtil.getBean(HTTPUtils.class);
String url = utils.getFullPath(ResourceConsts.FTP_RES_PATH + resource.getPath());
if (url == null) {
return;
}
VLCPlayer player = new VLCPlayer();
player.loadVideo(url);
viewer.getChildren().add(player);
// player.loadVideo("http://192.168.1.19:8082/Test/Mux140928003405.avi");
// player.loadVideo("http://192.168.1.19:8082/resources/4dae3b67-1d55-4125-a577-4086585464c1.mp4");
}