Metadata-Version: 2.4
Name: webplayercontrol
Version: 1.0.1
Summary: An ASGI application that exposes Media Player Remote Interfacing Specification (MPRIS)-compliant media players over the web.
Author: Christopher Head
License-Expression: GPL-3.0-only
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Multimedia :: Sound/Audio :: Players
Requires-Dist: aioscgi>=2.5.1
Requires-Dist: dbus-fast>=5.0.22
Requires-Python: >=3.14
Project-URL: Repository, https://gitlab.com/Hawk777/webplayercontrol
Description-Content-Type: text/markdown

What is MPRIS?
==============

The [Media Player Remote Interfacing
Specification](https://specifications.freedesktop.org/mpris/latest/), or MPRIS,
is a standard for remotely controlling media players via D-Bus in a Linux
system. Media players can expose MPRIS interfaces via D-Bus, and any
MPRIS-compliant client can control those players (pause, play, advance through
the playlist, adjust volume, seek, etc.).


What is webplayercontrol?
=========================

Webplayercontrol is a web application (implemented using
[ASGI](https://asgi.readthedocs.io/en/stable/) that provides a web interface
for controlling MPRIS-compliant media players. The web interface is optimized
for cell phone usage. The intention is to use a cell phone to control a media
player running on a desktop, for example while sitting too far away from the
desktop to use its own mouse and keyboard.


How do I set it up?
===================

You’ll need an ASGI server. There are lots available to choose from, some which
are usable on their own and some which expect to have a traditional Web server
(like Apache, Lighttpd, or Nginx) placed in front of them. Then, once
everything is installed, run your ASGI server and tell it the application
callable is `webplayercontrol:main`.


What options can I configure?
=============================

If your server supports [the pathsend
extension](https://asgi.readthedocs.io/en/stable/extensions.html#path-send),
you can set the `WEBPLAYERCONTROL_ASSETS` environment variable to the name of a
directory. The directory will be created, static assets will be extracted into
it, and the pathsend extension will be used to send those assets.
