Metadata-Version: 2.4
Name: ovos-control-panel-media
Version: 0.1.0a1
Summary: ovos-control-panel extension: what the device is playing, the queue, the volume, and the other matches for a request
Author: Andreas Lorensen
License: Apache-2.0
Project-URL: Homepage, https://github.com/andlo/ovos-control-panel-media
Project-URL: Issues, https://github.com/andlo/ovos-control-panel-media/issues
Keywords: ovos,openvoiceos,mycroft,media,ocp,control-panel
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ovos-control-panel>=0.0.1a86
Provides-Extra: test
Requires-Dist: pytest>=7.4; extra == "test"
Requires-Dist: httpx<1.0,>=0.27; extra == "test"
Dynamic: license-file

# ovos-control-panel-media

The Media page for
[ovos-control-panel](https://github.com/OpenVoiceOS/ovos-control-panel): what
the device is playing, play and pause, the queue, shuffle and repeat, seeking,
the volume, the other matches for what you asked for, and the songs you have
liked.

It is a **panel extension**: a page for the panel, nothing more. It was one of
the panel's own pages up to 0.0.1a85; it left so that a device that plays no
media (a reception desk, a phone line) does not carry it. Install it beside the
panel where the device plays media:

```
pip install --pre ovos-control-panel-media
```

(`--pre`, as for the panel itself.) Then restart the panel. It works with
`ovos-media` and with the older `ovos-plugin-common-play`: both answer the
`ovos.common_play.*` messages it uses.

## The page

The Media page shows what the device is playing and lets you control it. You can
play or pause, skip to the next or previous track, stop playback, and set the
volume.

![The Media panel on a wide screen](docs/img/media-wide.png)
![The Media panel on a phone](docs/img/media-mobile.png)

## What you need

The device must run a media service. This is either `ovos-media` or the older
common-play plugin. If no media service answers, the page tells you so and hides
the controls.

## Now playing

The card at the top shows the current track. It shows the title, the artist, and
the cover art when the skill provides them. It also shows the state: playing,
paused, or stopped.

The page does not update on its own. Select **Refresh** to read the current track
again.

## Controls

- **Previous** and **Next** move through the playlist.
- **Play / Pause** starts or holds playback.
- **Stop** ends playback.

## Volume

Move the slider to set the volume from 0 to 100. Select **Mute** to silence the
device, and **Unmute** to restore the sound.

## Development

```
pip install --pre -e ".[test]"
pytest -q tests
```

See the panel's
[docs/pages.md](https://github.com/OpenVoiceOS/ovos-control-panel/blob/dev/docs/pages.md#panel-extensions)
for how an extension is found.

## License

Apache-2.0
