Coder Social home page Coder Social logo

rust-caster's Introduction

Rust Caster

Build Status

Just a helper tool for Rust Cast crate.

Usage

Generic features

To get the address of the device you can use avahi with the following command:

$ avahi-browse -a --resolve
// Get some info about the Google Cast enabled device (e.g. Chromecast). 
$ cargo run -- -a 192.168.0.100 -i

Number of apps run: 1
App#0: Default Media Receiver (CC1AD845)
Volume level: 1
Muted: false

// Run specific app on the Chromecast.
$ cargo run -- -a 192.168.0.100 -r youtube

// Stop specific active app.
$ cargo run -- -a 192.168.0.100 -s youtube

// Stop currently active app.
$ cargo run -- -a 192.168.0.100 --stop-current

The following app has been stopped: Default Media Receiver (CC1AD845)

Media features

// Stream a video.
$ cargo run -- -a 192.168.0.100 -m http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4

// Stream a video of specific format with buffering.
$ cargo run -- -a 192.168.0.100 -m http://xxx.webm --media-type video/webm --media-stream-type buffered

// Stream video from YouTube.
$ cargo run -- -a 192.168.0.100 -m 7LcUOEP7Brc --media-app youtube

// Display an image.
$ cargo run -- -a 192.168.0.100 -m https://azasypkin.github.io/style-my-image/images/mozilla.jpg

// Change volume level.
$ cargo run -- -a 192.168.0.100 --media-volume 0.5

// Mute/unmute media.
$ cargo run -- -a 192.168.0.100 --media-mute [--media-unmute]

// Pause media.
$ cargo run -- -a 192.168.0.100 --media-app youtube --media-pause

// Resume/play media.
$ cargo run -- -a 192.168.0.100 --media-app youtube --media-play

// Seek media.
$ cargo run -- -a 192.168.0.100 --media-app youtube --media-seek 100

For all possible values of --media-type see Supported Media for Google Cast.

rust-caster's People

Contributors

azasypkin avatar wdv4758h avatar

Stargazers

ejmg avatar

Watchers

James Cloos avatar ejmg avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.