Skip to main content

Media player for the Dakara Project

Project description

Dakara player

PyPI version PyPI Python versions License Tests status Code coverage status Code style: black Imports: isort

Interface between the Dakara server and a media player, for the Dakara project.

Installation

To install Dakara completely, you have to get all the parts of the project. Installation guidelines are provided over here:

System requirements

  • Python3, for the magic to take place (supported versions: see above).

At least one of the following players:

  • VLC (supported version: 3.0.0 and higher, note that versions 3.0.13 to 3.0.16 cannot be used);
  • mpv (supported version: 0.27 and higher).

For 64 bits operating systems, you must install the equivalent version of the requirements. Linux and Windows are supported.

Virtual environment

It is strongly recommended to use the Dakara player within a virtual environment.

Install

Please ensure you have a recent enough version of setuptools:

pip install --upgrade "setuptools>=46.4.0"

Install the package with:

pip install dakaraplayer

If you have downloaded the repo, you can install the package directly with:

pip install .

Usage

The package provides the dakara-player play command which runs the player:

dakara-player play
# or
python -m dakara_player play

One instance of the Dakara server should be running.

For more help:

dakara-player -h
# or
python -m dakara_player -h

Before calling the command, you should create a config file with:

dakara-player create-config
# or
python -m dakara_player create-config

and complete it with your values. The file is stored in your user space: ~/.config/dakara on Linux, or $APPDATA\DakaraProject\dakara on Windows.

Configuration

The configuration is created with the previously cited command. Several aspect of the player can be configured with this file. Please check with the file documentation.

Authentication to the server can only be done with a player token that can be generated and copied from the web client. Please note that only a playlist manager can generate such a player token.

Customization

The different text screens used when the player is idle, or before a song, can be customized, both for the background and the text template. The program looks for custom files at startup in the user directory: ~/.local/share/dakara/player on Linux or $APPDATA\DakaraProject\dakara\player on Windows. Backgrounds are located in the backgrounds subfolder, and text templates in the templates subfolder. File names can be modified in the config file, see player.templates and player.backgrounds.

You can dump the default backgrounds and templates in the user directory as a starter with:

dakara-player create-resources
# or
python -m dakara_player create-resources

Development

Please read the developers documentation.

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

dakaraplayer-1.9.0.tar.gz (388.0 kB view details)

Uploaded Source

Built Distribution

dakaraplayer-1.9.0-py3-none-any.whl (359.5 kB view details)

Uploaded Python 3

File details

Details for the file dakaraplayer-1.9.0.tar.gz.

File metadata

  • Download URL: dakaraplayer-1.9.0.tar.gz
  • Upload date:
  • Size: 388.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for dakaraplayer-1.9.0.tar.gz
Algorithm Hash digest
SHA256 c9b695884204da1a5a9e57da04e853258d57de3c22f5e4117adcb44d99378dcd
MD5 d4bf9caad34db3dbbda4a190f5768a21
BLAKE2b-256 872f25c8b8554e57f2f8d4e498e20fdde3a034b4194b38957db7a04f86821003

See more details on using hashes here.

File details

Details for the file dakaraplayer-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: dakaraplayer-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 359.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for dakaraplayer-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7a8ec2aae8b3844570c930f89249dd4ab1dfa5df531460bb2f0f9e276c68592
MD5 88eb839d4415e88bd2c29995b1ee3838
BLAKE2b-256 b65b9edcc89ecd2e9794b3dad36cb8d5ddfd244858f36f21f2f21565f27b6a86

See more details on using hashes here.

Supported by

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