Ampache has the ability to remote control VLC over the network via it's http interface. VLC or VLC media player is a cross-platform open source media player that can play most known media formats. This document will walk you through the steps on how to setup localplay with VLC. It is assumed that you have
Admin rights on your Ampache instance.
Vlc comes standard with a built in http interface, this needs to be activated before ampache can use it for localplay.
Goto the Tools menu //preferences// (show settings all) //interface > main interface//, tick http remote control interface. Then //main interface > HTTP// , fill in your host adres with portnumber (like: 192.168.0.109:8900) default is 8080 but i advice to use something else. Fill in the Source directory,this is the directory where your vlc http files are,there mostly here(c:\Program Files\Videolan\VLC\http). You need to restart vlc for it to take effect.
Same as above, directory is mostly at /usr/share/vlc/http , the interface can also be started from the command line see.
There is no password used so security happens thru a .host file that only allows access from hosts in the file(”/usr/share/vlc/http/.hosts” for linux) or ( ”%PROGRAMFILES%\VideoLAN\VLC\http\.hosts” for Windows).
Here you have to make sure the ip adress of your ampache server is included or uncommented.
The VLC php files are not included in the standard ampache download. Files needed are vlcplayer.class.php and vlc.controller.php, download link will be provided later.
create a directory named vlc in ../modules and copy vlcplayer.class.php in there.
Goto ../modules/localplay and copy vlc.controller.php there.
Now see that you are logged in as admin into ampache, goto modules>localplay modules and activate vlc. Linux users make sure those files are readable by your webserver.
Settings --> option -> localplay type (vlc) Localplay --> Add instance ->
You will be given several options when creating an instance, such as instance name and hostname and port. Name is how Ampache will represent the instance on the sidebar. The Hostname is the IP or DNS name of your Vlc server (same as host in your vlc settings). If vlc is non-local make sure that it is listening on the correct IP. Port is by default 8080 but because this is used by other processes another port is preferred.
PASSWORD is not used at the moment so leave this blank.
Once you created an instance, the name of the instance should show up under Active instance. All that you have to do to start using it is click on its name. It should turn blue to indicate that the change was successful. At any time you can switch back to Streaming by clicking None or start managing a different instance by clicking on its name.
The vlc controller is still in beta, if you find any errors or problems please let me know (davevdv). Vlc uses xml files to communicate and in standard mode sends it's entire medialibary along if requesting a playlist, so a big medialibary can make things slow.