Anda di halaman 1dari 3

How-To Play music with Maptool (using VLC

HTTP Interface)
(my screenshots are in french, sorry)
Starting VLC
Download and install VLC (here)
Launch a VLC server and activate the HTTP Interface on a specific port (here
I choose port 8081, for my music channel)
o Basic method:
i. Go in tools/preference/

ii. Check allow only one instance to be on, and Click on all
parameters



iii. Go in Interface / Main Interface / HTTP and write your IP in
Host Adress, with specific port


iv. Save config.

v. Open notepad or vi or whatever .txt editor, and save this code
in a MaptoolMusic.html under VLC repertory named
/VLC/http (there should already be file, like Index.html)
ii. <html>
<head>
<title>VLC media player - Web Maptool Interface</title>
</head>
<body>
<br>
playing for Maptool [<vlc id="value" param1="url_value" />]

<br>
<vlc id="rpn" param1="playlist_empty" />
<vlc id="rpn" param1="url_value value 'MaptoolCurrentMusic' playlist_add " />
<vlc id="rpn" param1="vlc_play" />
</body>
</html>

Easy start
o For Windows:
Instead ii to iv : Open notepad, and put this unique line of
command in StartVLCforMaptool.bat (beware CR in
copy/paste)
i. start "VLC Maptool" "C:\..\VideoLAN\VLC\vlc.exe" --extraintf http --http-port 127.0.0.1:8081
o For Linux:
Instead ii to iv : Open vi, and put this unique line of command
in StartVLCforMaptool.sh (beware CR in copy/paste)
ii. ./vlc --http-host 127.0.0.1:8081 --extraintf http &
o For MAC:
I dont know :D



About MapTool :
i. Start Maptool, and write a macro displaying
iii. <a href=http://127.0.0.1:8081/MaptoolMusic.html?C:Mysong.MP3> Click me </a>
ii. Click on the macro/link, and there should be a browser
opening, ordering to play your music in VLC

Beware : the MaptoolMusic.html I wrote is very basic, and cannot play files
with space caracter on the name or in the path. Its same rule for other special
characters : its working with /but not for \

Anda mungkin juga menyukai