Package uk.co.caprica.vlcj.player.list

Examples of uk.co.caprica.vlcj.player.list.MediaList


    if (filePath.startsWith("http")){
      mediaPlayer.setPlaySubItems(true); // if it's a stream.
      mediaPlayer.playMedia(filePath, ":sout=#udp{dst=127.0.0.1:"+ port +"}")
      currentMedia = MEDIAPLAYING.HTTP;
    }else{     
      MediaList playlist = factory.newMediaList();
      playlist.addMedia(filePath, ":sout=#udp{dst=127.0.0.1:"+ port +"}");   
      mlp.setMediaList(playlist);
      mlp.setMode(MediaListPlayerMode.LOOP);
      mlp.play();   
      currentMedia = MEDIAPLAYING.FILE;
    }   
View Full Code Here

TOP

Related Classes of uk.co.caprica.vlcj.player.list.MediaList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.