How to create a cross-platform network controlled jukebox system (using VLC)
For ages now we’ve been trying to find a solution to our music needs in the office at work…
We have Windows, Mac and Linux computers and wanted to be able to use one computer to play music but we wanted each of our staff to be able to control (pause, skip track etc) the music, in case the phone rings etc. At last, we found the solution…and it’s very simple indeed!
VLC – a multimedia app (which is available for a lot of different platforms) has an option allowing network control via a web-browser interface. Granted, it’s not the prettiest of interfaces but it works well so we are very happy.
Please note that the computers which will control VLC must be on the same network as the “Host machine” (the computer running VLC). Computer with which you want to control VLC do NOT need to have VLC installed.
To get the whole thing to work, we simply did the following:
- Install VLC on the “Host machine”, the computer from which you want to play music (whichever computer is wired to your speakers!)
- Go into the “Preferences” (or “Options” depending on your platform) in VLC and click the “All” (or “Advanced”) radio button in the bottom left
- Still in “Preferences” (“Options”) select “Interfaces” from the left-hand menu check “Run as daemon process” (most instructions do not mention this setting but ours wouldn’t work without it)
- Again in “Preferences” (“Options”) select “Interfaces” > “Control interfaces” from the left-hand menu and select “Web interface”
- “OK” the changes to preferences
- Start up a web-browser on another computer on the same network and go to http://HOST-MACHINE-IP:8080 and you should see the VLC network control interface!
NOTE: If you don’t – please check the firewall settings on the host computer
There are some instructions on the VLC website which discuss the various options to achieve the above also – http://wiki.videolan.org/Control_VLC_via_a_browser
I hope that helps!
| This entry was posted by Neil Craig on September 13, 2010 at 4:55 pm, and is filed under General Web-Development. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No comments yet.
Solution: Javascript returns incorrect width or height of an element containing image(s) when page first loads
about 2 years ago - 9 comments
Recently, I’ve been doing quite a lot of JavaScript development, part of which involved equalising heights of a group of similar elements on the page. I thought this would be very simple and indeed it was but it threw up a JavaScript quirk which I have seen several times before. The solution is simple, but More >
Flushing your DNS cache on Mac OSX 10.4, 10.5 and 10.6
about 2 years ago - No comments
If like me, you have to transfer websites between servers from time to time and you use an Apple Mac, you’ll probably need to know how to flush your DNS on Mac OSX (flushing is the term used for removing of all records to force an update). For all versions of OSX, the simplest way More >
JSH5F – A Javascript method to enable HTML5 Form Elements in Browsers which support them
about 3 years ago - 2 comments
HTML 5 offers 13 new form input element types but Browser support for these new input types is very scant at present. However, with JSH5F, you can use the new HTML 5 form elements right now in supporting Browsers without causing problems for people using non-supporting browsers.
IPhone home page bookmark icon creation
about 3 years ago - No comments
Apple’s IPhone has a custom icon for bookmarked web-pages. In this article, i’ll show you how to create an icon of your own – it’s really easy.
