Page 1 of 1

My first crack at creating some type of Video Wall interface

Posted: 30 Sep 2009 14:50
by He11razor
Hi all,

I've always wanted to display different videos in a grid, like a video wall. I know VLC itself has a Wall filter, but that's not what I was looking for as it only makes a wall of the same video.

I created this app in Java:

http://somefarkerdude.googlepages.com/vlcIE.zip

Create a workspace in Eclipse and import General -> Existing projects into workspace.

To have it run and compile, you also need to import the SWT project. Follow the instructions here:

http://www.eclipse.org/swt/eclipse.php

In order for videos to show up, make a list of the videos including the full path and put it in a file called "list.txt" and put it in the project root (the current directory). So in this case put it here:

C:\workspaces\vlcIE\vlcIE\
*vlcIE = This is the name I gave to my workspace.

[sample contents of list.tst]
c:\videos\vid1.avi
c:\videos\vid2.avi
c:\videos\vid3.avi
c:\videos\vid4.avi

The list can be as long as you want. If it doesn't fit in the grid, it'll get added to the playlist of the grid VLC objects sequentially.

Run Main.java as an application to get it to run.

the default grid is created at 3 x 3. You can of course change that via the VLCBrowser class (look in the method that calls out to getHTML)

Yes, the app simply uses a "Browser" to render HTML, so in essence it's a glorified HTML generator. The default engine it uses in Windows is IE. It probably won't work with Mozilla right now.

I tried doing the whole thing in Java using the SWT package but it was constantly crashing. This version still crashes sometimes but only on start up!

You can run it outside of Eclipse by exporting to Java -> Runnable Jar File. Then simply double click on the Jar file and off it goes! Make sure the list.txt file is in the same directory.


Let me know what you think.