Metadata-Version: 2.1
Name: python-vlc-http
Version: 0.0.11
Summary: Python module that enables communication with the VLC http server 
Home-page: https://github.com/matejmecka/python-vlc-http
Download-URL: https://pypi.org/project/python-vlc-http/
Author: Matej Plavevski
Author-email: matej.plavevski+github@gmail.com
License: MIT
Keywords: VLC,HttpServer
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: xmltodict

# python-vlc-http
Pip module for sending http requests to a VLC Server

# Installation

`pip install python-vlc-http`

# How to use

```python
from python_vlc_http import HttpVLC

vlc_client = HttpVLC('host', 'username', 'password')

fullscreen_status = vlc_client.is_fullscreen()

if(fullscreen_status):
   print('VLC is running on fullscreen!')

```

**NOTE:** Host follows the format of http://thisissomeaddrress.com:[PORT NUMBER HERE] else it will raise an exception!


# Methods
 
 
* `album()`

    Get the album playing, if none it returns None

* `api_version()`

    Return API Version of VLC Server

* `artist()`

    Get the artist playing, if none it returns None

* `aspect_ratio()`

    Return Aspect Ratio of media playing

* `audio_delay()`

    Return Aspect Ratio of media playing

* `clear_queue()`

    Clear media in queue

* `filename()`

    Get the filename

* `is_fullscreen()`

    Return if VLC is in fullscreen

* `is_looped()`

    Return if VLC is set on loop
    
* `is_on_repeat()`

    Return if playback is set on repeat

* `is_random()`

    Return if shuffle is on or off

* `media_artist()`

    Return Current Artist playing

* `media_length()`

    Return the length of the media in seconds

* `media_time()`

    Return how long the media file is

* `next_track()`

    Play next media in queue

* `position()`

    Return the position of the playback

* `previous_track()`

    Play previous media in queue

* `rate()`

    Return the rate

* `set_volume(volume)`

    Set volume level, range 0..1.

* `shuffle()`

    Set shuffle mode

* `state()`

    Return the state of the media file

* `stop()`

    Send stop command.

* `subtitle_delay()`

    Return the set delay for subtitles

* `title()`

    Get the title playing, if none it returns None
    
* `toggle_fullscreen()`

    Toggle Fullscreen

* `track_number()`

    Get the track_number playing, if none it returns None

* `volume()`

    Return the volume of the media playing
    
* `play()`

    Start playing media playback

* `pause()`

    Pause playback
    
* `play_playlist_item`
    
    Arguments: 
    
     * id -> The id of the playlist item you want to play

    Start playing a specific item from a playlist
    
*  `delete_playlist_item`

     Delete a specific item from a playlist

     Arguments: 
    
     * id -> The id of the playlist item you want to delete
     
*  `sub_delay`

     Select the subtitle delay for a video.

     Arguments: 
    
     * val -> The delay for the subtitles
     
 *  `video_track`

     Select the video track for a particular media file.

     Arguments: 
    
     * val -> ID from the stream
     
 *  `subtitle_track`

     Select the subtitle track for a video.

     Arguments: 
    
     * val -> ID from the stream
     
 *  `set_rate`

     Set the rate for a current media file.

     Arguments: 
    
     * val -> the value of what ratee it should be
     

