VLC how can i apply auto loop of the given content while using with options? Following did not work to loop.
private void start() {
frame.setVisible(true);
String mrl = "file:///home/sun/Downloads/t1.avi";
// fails
// String[] options = {
// "--loops",
// "--repeat",};
///Applications/VLC.app/Contents/MacOS/VLC -vv qtcapture:// --sout='#transcode{vcodec=h264,vb=768,fps=25.0,scale=1}:standard{access=udp,mux=ts{dts-delay=9000},dst=239.0.0.5}'
//mediaPlayer.playMedia(mrl, options);
//String[] options = {"--loops"};
// no luck fails too
mediaPlayer.playMedia(mrl,
":sout ':standard{loop}'");
}
If you use
VLCJ, I suggest that you to callmediaPlayer.setRepeat(true);It works in my VLCJ project as follows:Tested with with
JRE 1.6 32-bit:VLCJ 1.2.0+ VLC enginelibVLC 1.1.11(Windows 32-bit)VLCJ 2.1.0-SNAPSHOT+ nightly build VLC enginelibVLC 2.1.0(Windows 32-bit)