-
-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FAILS] - vlcj fail to allow --loop --repeat for auto replay #21
Comments
--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. |
However does not work in Linux. Mind it tested and failed. |
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. |
In Linux that setRepeat(true) is not working please below, where its working in Windows as i already explained in my above seal. |
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. |
You are 100% correct, thank you. I just now realized it was my mistake or my distro mistake because Which was causing the latest VLCJ as following:
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.
|
If "--loop" on the command-line works, you don't need mediaPlayer.setRepeat(true). |
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. |
That is a different issue, so please create a new issue to track it. |
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=". |
I have tried --loop or --repeat for auto replay but it fais. Also i have tried methods offered.
How do you fix it?
The text was updated successfully, but these errors were encountered: