Skip to main content

Python module that enables communication with the VLC http server

Project description

python-vlc-http

Pip module for sending http requests to a VLC Server

Installation

pip install python-vlc-http

How to use

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-vlc-http-0.0.8.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_vlc_http-0.0.8-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file python-vlc-http-0.0.8.tar.gz.

File metadata

  • Download URL: python-vlc-http-0.0.8.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for python-vlc-http-0.0.8.tar.gz
Algorithm Hash digest
SHA256 4de2e83e1edac003b2fe90e2bc1381b7f8f4ba1117f6c71deee848011cfa716c
MD5 b2d7625fe5f81c4b1194a745acdcbc69
BLAKE2b-256 3f14202740c59ff43809b04d083e0c708c6ba53140aa003f7c48a4eb5958ffe8

See more details on using hashes here.

File details

Details for the file python_vlc_http-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: python_vlc_http-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for python_vlc_http-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d1b6048a1ec888221016c4521af262bea9886b2d11fc4113149b5c0978ebcd
MD5 f6b316306d933a10a899bde94bd99bd4
BLAKE2b-256 2b35645da44d61ca2feaf3006255f40310b87e847ca94d1a3d6c578d11fd39b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page