Skip to main content
Pre-release

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.

cast_control 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-media has 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

ovos_media_plugin_chromecast-0.1.4a12.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ovos_media_plugin_chromecast-0.1.4a12.tar.gz.

File metadata

File hashes

Hashes for ovos_media_plugin_chromecast-0.1.4a12.tar.gz
Algorithm Hash digest
SHA256 9856555976278547df49fdede32d80ed83aecbf1608dcf3ee253878206aceb8c
MD5 18caf7ca6b091be4c029ee21f149dad8
BLAKE2b-256 43bdce73163023483415d7da26f2e659e38e58195d790ca7209a2e3af0bc35a5

See more details on using hashes here.

File details

Details for the file ovos_media_plugin_chromecast-0.1.4a12-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_media_plugin_chromecast-0.1.4a12-py3-none-any.whl
Algorithm Hash digest
SHA256 705dc012c4b859d14d98fd9decca9ccf628454c67d050abcb0a7be8a17ccec01
MD5 a8bc1cc3ce7da639702e078e5f5bc94e
BLAKE2b-256 99256dd54d5879c60208064c237ee6bbab5618672ad9876ccf348fbf0fdb18bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page