driver-go-chromecast

command module
v0.1.0-22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2015 License: MIT Imports: 14 Imported by: 0

README

Ninja Sphere - Chromecast Driver

Build status godoc MIT License Ninja Sphere Ninja Sphere


Introduction

This is a driver for the Google Chromecast, allowing it to be used as part of Ninja Sphere.

It currently only supports applications that export the "urn:x-cast:com.google.cast.media" namespace, though that will be expanded as other namespaces are found and documented.

Supported Sphere Protocols
Name URI Supported Events Supported Methods
volume http://schema.ninjablocks.com/protocol/volume set, volumeUp, volumeDown, mute, unmute, toggleMute state
media-control http://schema.ninjablocks.com/protocol/media-control play, pause, togglePlay playing, paused, stopped, buffering, busy, idle, inactive
To Do
  • Add the media protocol, to gain media meta-data and play position/seeking.

  • Finish the media-control protocol support, adding next/previous/stop etc.

  • Add additional support for the Plex applcation, collecting advanced meta-data from the Plex Server's REST api.

  • See if notifications are possible without using a custom application (i.e. by adjusting the current player's CSS, or using additional namespaces)

  • Expand support for other applications, especially to pull extra meta-data (i.e. YouTube)

Can't Do
  • Owing to private APIs, the Netflix application can't currently be supported.
Requirements
  • Go 1.3
Dependencies

https://github.com/ninjasphere/go-castv2

Building

This project can be built with go build, but a makefile is also provided.

Running

DEBUG=* ./driver-go-chromecast

Options

The usual Ninja Sphere configuration and parameters apply, but these are the most useful during development.

  • --autostart - Doesn't wait to be started by Ninja Sphere
  • --mqtt.host=HOST - Override default mqtt host
  • --mqtt.port=PORT - Override default mqtt host
More Information

More information can be found on the project site or by visiting the Ninja Blocks forums.

Contributing Changes

To contribute code changes to the project, please clone the repository and submit a pull-request (What does that mean?).

License

This project is licensed under the MIT license, a copy of which can be found in the LICENSE file.

This work is Copyright (c) 2014-2015 - Ninja Blocks Inc.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL