This is a library of the http interface commands for VLC Media Player. I prefer not using hotkeys whenever possible as sometimes they conflict with hotkeys of other apps.
A new library for the latest version of VLC Media Player can be found at VLCHTTP2.
Advantages of using VLCHTTP and VLC Media Player.
VLC does NOT need to be the active window to use HTTP functions and therefore doesn't interfere with other windows.
HTTP functions can be used over the internet, local networks or on one computer.
VLC can play full screen on any monitor, not just the default monitor.
VLC will open full screen on which ever monitor the media link was clicked.
VLC does not drop out of full screen when it looses focus. Play a movie on one monitor and work on the other.This latest version includes all transport, playlist and status functions as well as many other custom functions. "UrlDownloadTofile" has been changed to olfen's "UrlDownloadToVar". Functions are faster and creating/reading text files is no longer needed. All needed functions are also included such as UrlDownloadToVar by olfen and UnHTM by SKAN.
Download VLCHTTP Here. Re-upped 8-21-12.
Right click and save file as some characters are not correctly displayed in a web browser.
Gui, Add, Button, gButton1, Play/Pause Gui, Add, Button, gButton2, Volume Up Gui, Show Return Button1: VLCHTTP_Pause() ; Use pause instead of play to toggle play/pause mode. Return Button2: VLCHTTP_VolumeUp(1) ; Turns the volume up 1 step. Return
Download AHK example using all commands. Lost in ahk.net crash.
The gui resembling a remote is obviously to control VLC. The center window acts as a playlist. The 3rd window displays what is actually being received from VLC that must be parsed to retrieve the data for the other two windows. It also contains a list of all the functions.
Setting up VLC.
In VLC's option you will need to activate the http interface by checking the box in front of it. It's located in Interface/Main Interface. Then add this information to Interface/Main Interface/Http
Host Address- 127.0.0.1:8080 Source Directory- C:\Program Files\VideoLAN\VLC\http
The source directory has changed in some version of vlc, make sure the file index.html is in the directory or change the source directory to the folder it is in. Once set up, you can view the HTML example supplied with VLC by entering the host address into a browser and pressing enter.
Switched from "UrlDownloadTofile" to olfen's "UrlDownloadToVar", functions are faster and creating/reading text files is no longer needed.
Added all transport, playlist and status commands and created several others to compliment them.
Note, Playlist sort HTTP functions are broken in the latest version of VLC and do not operate correctly from these functions or in VLC's HTML examples.
Service Discovery Module functions have been added but are untested.
Added several commands including some playlist commands.
Changed the confusing return file name and directory. It now is written to C:\vlc_return.txt.
Added several functions.
Added a parameter to pass to functions such as ff/rw and volume.
Added toggle mute function.