Search in sources :

Example 1 with VLCPlayer

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");
}
Also used : VLCPlayer(com.cas.sim.tis.view.control.imp.vlc.VLCPlayer) HTTPUtils(com.cas.sim.tis.util.HTTPUtils)

Aggregations

HTTPUtils (com.cas.sim.tis.util.HTTPUtils)1 VLCPlayer (com.cas.sim.tis.view.control.imp.vlc.VLCPlayer)1