Giter Site home page Giter Site logo

castv2-player's Introduction

cast2-player

NPM version Downloads

NPM

A Node.js Chromecast player library

A player based on the new (CASTV2) protocol used by Chromecast

Built as wrapper of the node-castv2-client library.

##Features

  • Scanner
    • for each device: name, IP, port, type (audio, video, audio group)
    • periodically scans for new devices
    • report updates in device such as new IP or port
  • Media Player
    • Automatically (re-) connects to device
    • Return live and cached status
    • Can start playing with an URL -> all required info is derived from it
      • detect media type
      • detect playlists (m3u, pls, etc)
    • Can play announcements
      • announcements are inserted in currently playing playlist
      • announcements can be played with a different volume (check the announcement example)
      • currently playing track is resumed at the same location it was before
    • Can jump between the playlist
    • Can update the playlist

##Examples Check the examples folder. The helloWorld.js should work out of the box. For the remaining testcases you will need to adjust the defines.js to point to your setup.

You can run all examples as testcases with npm test

Intefaces

Check the main class.

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.