-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
executable file
·23 lines (19 loc) · 819 Bytes
/
README.txt
File metadata and controls
executable file
·23 lines (19 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
VLCHTTPAPI is a Python module that uses the VLC HTTP API to control VLC.
Usage:
>>>from pyvlchttp import VLCHTTPAPI
>>>vlc = VLCHTTPAPI('127.0.0.1', '8080', 'password')
>>>vlc.play()
>>>vlc.last_http_status_code
200
>>>vlc.stop()
etc...
None of the functions check the HTTP status codes for success. This is the responsibility
of the caller.
VLC HTTP spec is documented at https://wiki.videolan.org/VLC_HTTP_requests/, and
is documented in more detail in VideoLAN\VLC\lua\http\requests\README.txt wherever VLC
is installed.
TODO:
- Implement all of the functions in VLCHTTPAPI() that require additional arguments
- Comments/Examples
- Utility functions for converting browse_dir() output to something useful
- Tests (integration more so than unit)