Hi everyone. I'm not really sure whether this topic is appropriate in this forum. Please pardon me if I'm wrong.
I'm currently able to play media files using VLC in my swing program. However, it isn't working out as I wanted it to be. I'm hoping that anyone who has been using VLC in their program/project can help me understand why or how can I resolve this.
I'm building a GUI program that allows user to open and play media files(eg. movie file, music files). If its a music file, the player will not be visible and the music will play in the program UI without being noticed.
I've managed to do this by adding some command lines for it to work through Terminal*.
When I tried to make it as executable and run in java swing, It isn't running like in the Terminal. While running the program, the music will be played but with the player visible.
Attached below is the code that I've placed in my program.
Attached in song1.sh file is exactly the same command line that I've used in Terminal*.
I'm using: Fedora Core 6 VLC media player 0.8.6a Eclipse 3.2
Thanks in advance.
Adrian Lee [ July 20, 2007: Message edited by: Adrian Lee ]
First of all I have to say that I do not have an immediate solution for your problem.
I am wondering however why you are not using the Java API for VLC (JVLC). Maybe this will help you to have some more control over VLC.
But if you really want to do it like you are doing at the moment, some questions come to mind. Have you tried running the .sh script itself (without java program)? Does it work correctly?
Have you tried using the runtime without the .sh script? You can also execute the vlc command directly, maybe that solves the problem.
Sorry that I cannot be more helpful.
Joined: May 10, 2007
Hi Manuel. Thanks for the reply.
Sorry, I don't quite understand the installation/usage of JVLC. I've downloaded the file "org.videolan.jvlc-0.9.0-20070225-linux-x86_64.jar" from http://trac.videolan.org/jvlc/wiki/download and extracted it but I don't quite understand how it works.
I've found another way to start the vlc player to play in the background. However, I've no control over it as it's using a dummy interface.