maharajah wrote:Alright, folks, here's something a little more flexible, built in Java. Not necessarily up to snuff with the existing one for Windows, but I did try to take the time to at least document the code a little better before releasing it. Code quality is low-ish, my apologies.
This is based around using VLC as your player, so I assume you have that installed. It then pulls in jna vlcj to hook up to it, and requires the following flag to point to VLC's lib folder. In Eclipse, Run As > Run Configurations > Arguments > VM arguments, you need to add the path to VLC. For OSX, it is probably:
-Djna.library.path=/Applications/VLC.app/Contents/MacOS/lib
More info, see
http://www.capricasoftware.co.uk/vlcj/tutorial1.php
A few things in terms of actually using the player:
- Eclipse project right now. Maybe someone can package as a jar to be more easily runnable? You should be able to simply import this into Eclipse and more or less run it though, probably immediately if you have a Mac with VLC installed. By default, the videos should be in the "vids" directory, and there's a sample "my_round" that it's pointed at.
- Entry point is VideoRandomizer.java. You can change the locations of hardcoded paths in there if you want.
- Works on existing CHDB.xml.
- You can have playlist files that look like:
In this case, the player will pick round 1 from the first line, round 2 from the second line, and so on. Gives you a little more control over the flow of your randomizer experience. See "my_round" file for more detail.
- I changed some of the keyboard shortcuts around, but those are in VideoFrame.java (search for "inputMap"). "F" will fullscreen and "Cmd+Right" will skip to the next round.
And finally:
http://filecloud.io/qak1m9fr