Comments (10)
--loop and --repeat are options for the command-line vlc. Of course they don't work with embedded libvlc.
Look at the Javadoc for MediaPlayer and you'll find an option to loop or autorepeat.
Otherwise, use the MediaListPlayer and set it to loop.
from vlcj.
However does not work in Linux. Mind it tested and failed.
from vlcj.
This is not Twitter. You're providing a narrative about your day rather than providing any useful information. What "does not work in Linux"? I exclusively use Linux for this project and I don't have any problems.
from vlcj.
In Linux that setRepeat(true) is not working please below, where its working in Windows as i already explained in my above seal.
from vlcj.
If you explained above, then you did not explain clearly enough.
Anyway, there is absoultely no reason whatsoever why the auto-repeat functionality would work in Windows and not in Linux. The code is exactly the same.
Post some useful information and I'll try to help, but don't post any more screenshots.
from vlcj.
You are 100% correct, thank you. I just now realized it was my mistake or my distro mistake because yum -y install vlc
always install default old version which is lower then VLC 2.0.0.
Which was causing the latest VLCJ as following:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: This version of vlcj requires version 2.0.0 or later of libvlc, found too old version 1.1.13 The Luggage.
Therfore, i was using old VLCJ with old VLC. That old VLCJ and VLC, is not working with following code, but if i do command line --loop it works.
mediaPlayer.setRepeat(true);
mediaPlayer.setPlaySubItems(true);
mediaPlayer.playMedia(mrl, options);
from vlcj.
If "--loop" on the command-line works, you don't need mediaPlayer.setRepeat(true).
from vlcj.
mediaPlayer.setRepeat(true) doesn't work for me too on Ubuntu. The video runs for the first time and as soon the video ends, the file path seems like changed for the 2nd loop to run. Therefore, it says file not found! The path seems like appended with the original path.
from vlcj.
That is a different issue, so please create a new issue to track it.
from vlcj.
I just tested what @RajChanchal said, and it worked for me.
If you still think you have a problem, create a new issue, enable vlcj logging, post the logs in that issue and I'll take a look. Have a look in the logs in particular for "auto repeat mrl=".
from vlcj.
Related Issues (20)
- New native audio output mode HOT 1
- Add new native parse flag "no skip" with value 0x10 HOT 1
- macos: Native Discovery fails vlcj 5.0.0 and VLC 4 HOT 5
- VLC 4.0 internal api changes HOT 3
- Getting Null exception in overlayApi class, sometime when panel resize, or video finish HOT 3
- Remove native method libvlc_media_thumbnail_request_cancel HOT 1
- Can not show Embedded subtitle? HOT 1
- What causes main libvlc error: stale plugins cache: modified HOT 6
- Seeing a hard-crash when running under JDK-20 HOT 1
- Various native _retain() methods now return the retained instance HOT 3
- Issue: VlcJ 4 - EmbeddedMediaPlayerComponent black when moving between components HOT 4
- Native parsed flag changes HOT 1
- Native library changes
- what is a media-player-events thread?? HOT 8
- Is it possible to use vlcj in a sandboxed macOS app? HOT 4
- Pom is missing from 5.0.0-SNAPSHOT HOT 5
- When libvlc.so is a link to a shared library, file.exists() returns false and crashes the program HOT 1
- Apple M1 (darwin-aarch64/libvlc.dylib) not found HOT 9
- SeekableCallbackMedia stops reading buffer HOT 14
- How to release a list player instance. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vlcj.