Mopidy-MPRIS
Mopidy extension for controlling Mopidy through the MPRIS D-Bus interface.
An example of an MPRIS client is the Ubuntu Sound Menu.
Dependencies
D-Bus Python bindings. The package is named python-dbus in Ubuntu/Debian.
libindicate Python bindings is needed to expose Mopidy in e.g. the Ubuntu Sound Menu. The package is named python-indicate in Ubuntu/Debian.
An .desktop file for Mopidy installed at the path set in the mpris/desktop_file config value. Mopidy installs this by default. See usage section below for details.
Installation
Install by running:
pip install Mopidy-MPRIS
Or, if available, install the Debian/Ubuntu package from apt.mopidy.com.
Configuration
There’s no configuration needed for the MPRIS extension to work.
The following configuration values are available:
mpris/enabled: If the MPRIS extension should be enabled or not.
mpris/desktop_file: Path to Mopidy’s .desktop file.
Usage
The extension is enabled by default if all dependencies are available.
Testing the MPRIS API directly
To use the MPRIS API directly, start Mopidy, and then run the following in a Python shell:
import dbus
bus = dbus.SessionBus()
player = bus.get_object('org.mpris.MediaPlayer2.mopidy',
'/org/mpris/MediaPlayer2')
Now you can control Mopidy through the player object. Examples:
To get some properties from Mopidy, run:
props = player.GetAll('org.mpris.MediaPlayer2', dbus_interface='org.freedesktop.DBus.Properties')To quit Mopidy through D-Bus, run:
player.Quit(dbus_interface='org.mpris.MediaPlayer2')
For details on the API, please refer to the MPRIS specification.
Project resources
Changelog
v1.0.0 (2013-10-08)
Moved extension out of the main Mopidy project.
Metadata
Release files for mopidy-mpris 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Mopidy-MPRIS-1.0.0.tar.gz | 12.4 kB | Without provenance | Details for Mopidy-MPRIS-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Mopidy_MPRIS-1.0.0-py27-none-any.whl | Python 2.7 | none | any | Details for Mopidy_MPRIS-1.0.0-py27-none-any.whl |
Total release size: 24.2 kB
Release files / Mopidy-MPRIS-1.0.0.tar.gz
| Download URL | Mopidy-MPRIS-1.0.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fe649408fd3b4bf0ef1be1a4e9fd476c99dae0f7d1cd6551944efa8d341099c
|
|
BLAKE2b-256 checksum How to use checksums |
ff6599c215e6e1bdbd4ea5f56af203c5d0d4d40a94702d2554aeee1bb7caae80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Mopidy_MPRIS-1.0.0-py27-none-any.whl
| Download URL | Mopidy_MPRIS-1.0.0-py27-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 2.7 |
|
SHA-256 checksum How to use checksums |
72b16ae1aeaabb280845009c6b2248d5eeb03907ca1a103cc6937aa2e6c83b52
|
|
BLAKE2b-256 checksum How to use checksums |
1280c8aa25fcf85caf682860a124ba5be6b6645867ceccc059c7dd6a408319ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mopidy-mpris 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.