This release is a pre-release and may not be stable for production use.
ovos-media-plugin-chromecast
This plugin adds Chromecast support to ovos-audio and ovos-media.
Install
pip install ovos-media-plugin-chromecast
MPRIS
This plugin can start playback on a Chromecast. It cannot control a Chromecast when another device starts the playback.
To control a Chromecast in that case, install cast_control on your system. It provides an MPRIS interface.
With cast_control running, ovos-media integrates with your Chromecast at all times.
Configuration
Run the ovos-chromecast-autoconfigure command to configure your Chromecast devices automatically.
$ ovos-chromecast-autoconfigure
This script will auto configure chromecast devices under your mycroft.conf
Make sure your devices are turned on and connected to the same Wifi as you, otherwise discovery will fail
Scanning...
- Found Chromecast: Bedroom TV - 192.168.1.17:8009
Found devices: ['Bedroom TV']
mycroft.conf updated!
# Legacy Audio Service:
{'backends': {'chromecast-bedroom-tv': {'active': True,
'identifier': 'Bedroom TV',
'type': 'ovos_chromecast'}}}
# ovos-media Service:
{'audio_players': {'chromecast-bedroom-tv': {'active': True,
'aliases': ['Bedroom TV'],
'identifier': 'Bedroom TV',
'module': 'ovos-media-audio-plugin-chromecast'}}},
'video_players': {'chromecast-bedroom-tv': {'active': True,
'aliases': ['Bedroom TV'],
'identifier': 'Bedroom TV',
'module': 'ovos-media-video-plugin-chromecast'}}}
You can also configure the plugin by hand.
ovos-audio
{
"Audio": {
"backends": {
"my_chromecast": {
"type": "ovos_chromecast",
"identifier": "device_name_in_chromecast",
"active": true
}
}
}
}
ovos-media
WARNING:
ovos-mediahas not released yet. This section is a work in progress.
{
"media": {
// PlaybackType.AUDIO handlers
"audio_players": {
// the chromecast player uses a headless chromecast instance to handle uris
"kitchen_chromecast": {
// the plugin name
"module": "ovos-media-audio-plugin-chromecast",
// this must match the name of the chromecast device
"identifier": "Kitchen Chromecast",
// users can request specific handlers in an utterance
// by using these aliases
"aliases": ["kitchen chromecast", "kitchen"],
// set to false to deactivate this handler
"active": true
}
},
// PlaybackType.VIDEO handlers
"video_players": {
// the chromecast player uses a headless chromecast instance to handle uris
"living_room_chromecast": {
// the plugin name
"module": "ovos-media-video-plugin-chromecast",
// this must match the name of the chromecast device
"identifier": "Living Room Chromecast",
// users can request specific handlers in an utterance
// by using these aliases
"aliases": ["Living Room Chromecast", "Living Room"],
// set to false to deactivate this handler
"active": true
}
}
}
Related projects
- ovos-audio: the legacy audio service this plugin's backend targets
- ovos-media: the media service this plugin's player targets
- cast_control: provides MPRIS control for externally started Chromecast playback
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_media_plugin_chromecast-0.1.4a11.tar.gz.
File metadata
- Download URL: ovos_media_plugin_chromecast-0.1.4a11.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6f999f3fae0a0f74b9a9f80c01a40dd8d139e1171d34510691012a846f9db65
|
|
| MD5 |
8e5557f218f97f4a1845410178849e7b
|
|
| BLAKE2b-256 |
9e51fae323bdf15ad9c446b291892d3e890f2131b5027009bbb72e9b7de78506
|
File details
Details for the file ovos_media_plugin_chromecast-0.1.4a11-py3-none-any.whl.
File metadata
- Download URL: ovos_media_plugin_chromecast-0.1.4a11-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c89ae9b2a14ce0b57ecd32f468d80d2a98fb1196d539e86ab67ede92f3e5cee9
|
|
| MD5 |
1dc04674546f4831ca149b4a5b39f6b8
|
|
| BLAKE2b-256 |
8f3f90b530827ed43cdc1892e41125c8b9e7eb679e06112c45cc0dd5559aec3d
|