Skip to content
project-owner edited this page Feb 17, 2020 · 2 revisions

Installation

To install mpv player on Linux platform (e.g. Raspbian) run the following commands:

sudo apt-get install mpv
sudo apt-get install libmpv1

That will install the player and library for controlling the player.

In addition to the mpv player itself the Python binding library should be installed as well. It will allow Peppy Player to talk to the mpv player using Python. To install mpv Python binding run the following command:

pip3 install python-mpv

In case of successful installation the following command executed from the Python's prompt should not cause any exception:

>> import mpv

Configuration

The following example shows parameters which should be defined in audio section of the players.txt file in order to use mpv:

[audio]
player.name = mpv

The following parameters defined in players.txt file will be used to run mpv player on Linux platform:

[mpv.linux]
server.start.command = {"audio-device": "alsa/hw", "video": false}
client.name = mpvclient
server.stop.command = None

The following parameters defined in players.txt file will be used to run mpv player on Windows platform:

[mpv.windows]
server.start.command = {"audio-device": "auto", "video": false}
client.name = mpvclient
server.stop.command = None

Communication

The communication with mpv player includes commands which UI sends to the player and notifications which player sends back to UI. The following diagram shows how this communication was implemented:

mpv

Functionality

The following table lists the functionality available from mpv on different platforms. The lack of particular functionality doesn't mean that player doesn't provide it. That just means that it's currently not available in Peppy player and probably will be supported in the future.

Features vlc/Linux vlc/Windows
Web Radio x x
File Playback x x
m3u Playlist x x
cue Playlist
Audiobooks x x
Podcasts x x
Streaming Server
Streaming Client
CD Player
Support for UTF-8 filenames x x
VU Meter Screensaver

<<Previous | Next>>

Contents

Clone this wiki locally