Skip to main content

ovos-media-plugin-chromecast

chromecast plugin for ovos-audio and ovos-media

Install

pip install ovos-media-plugin-chromecast

MPRIS

This plugin only allows you to initiate playback in a chromecast, if you want to control your chromecasts when playback is initiated externally, you can install cast_control on your system to provide a MPRIS interface

imagem

ovos-media will then be able to seamlessly integrate with your chromecast at all times

Configuration

The easiest way is to use the provided ovos-chromecast-autoconfigure command

$ 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'}}}

ovos-audio

{
  "Audio": {
    "backends": {
      "my_chromecast": {
        "type": "ovos_chromecast",
        "identifier": "device_name_in_chromecast",
        "active": true
      }
    }
  }
}

ovos-media

WARNING: `ovos-media' has not yet been released, WIP

{
 "media": {

    // PlaybackType.AUDIO handlers
    "audio_players": {
        // chromecast player uses a headless chromecast instance to handle uris
        "kitchen_chromecast": {
            // the plugin name
            "module": "ovos-media-audio-plugin-chromecast",
            
            // this needs to be the name of the chromecast device!
            "identifier": "Kitchen Chromecast",

            // users may request specific handlers in the utterance
            // using these aliases
             "aliases": ["kitchen chromecast", "kitchen"],

            // deactivate a plugin by setting to false
            "active": true
        }
    },

    // PlaybackType.VIDEO handlers
    "video_players": {
        // chromecast player uses a headless chromecast instance to handle uris
        "living_room_chromecast": {
            // the plugin name
            "module": "ovos-media-video-plugin-chromecast",

            // this needs to be the name of the chromecast device!
            "identifier": "Living Room Chromecast",
            
            // users may request specific handlers in the utterance
            // using these aliases
             "aliases": ["Living Room Chromecast", "Living Room"],

            // deactivate a plugin by setting to false
            "active": true
        }
    }
}

Metadata

Release files for ovos-media-plugin-chromecast 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-media-plugin-chromecast 0.1.3
File Size Uploaded
ovos_media_plugin_chromecast-0.1.3.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-media-plugin-chromecast 0.1.3
File Interpreter ABI Platform
ovos_media_plugin_chromecast-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / ovos_media_plugin_chromecast-0.1.3.tar.gz

Download URL ovos_media_plugin_chromecast-0.1.3.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b491bc3baadeda40d6c0ecda1fbb241f6dcb343bf8600c8f9baa3a92121ee05
BLAKE2b-256 checksum
How to use checksums
653cc017da811071797a574089cc47baf145bb2eba183525febddaff47b2d493
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / ovos_media_plugin_chromecast-0.1.3-py3-none-any.whl

Download URL ovos_media_plugin_chromecast-0.1.3-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9a8b63ac6dfe601050c965ae1950134604940cab62dcf9c076c20d725209a8d
BLAKE2b-256 checksum
How to use checksums
8e0f1b9f138d3330cc5ffd11cbc38b56db6eb9ba18830212c62c8ea5108e96b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page