Socket
Socket
Sign inDemoInstall

castv2-player

Package Overview
Dependencies
89
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.1.0

examples/helloWorld.js

2

package.json
{
"name": "castv2-player",
"version": "1.0.6",
"version": "1.1.0",
"description": "A Chromecast client based on the new (CASTV2) protocol",

@@ -5,0 +5,0 @@ "author": "angelnu",

@@ -1,2 +0,40 @@

# cast2-player
cast2-player
============
[![NPM version](http://img.shields.io/npm/v/castv2-player.svg)](https://www.npmjs.com/package/castv2-player)
[![Downloads](https://img.shields.io/npm/dm/castv2-player.svg)](https://www.npmjs.com/package/castv2-player)
[![NPM](https://nodei.co/npm/castv2-player.png?downloads=true)](https://nodei.co/npm/castv2-player/)
### 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](https://github.com/thibauts/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](examples/announcementInStreaming.js) 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](examples/). The [helloWorld.js](examples/helloWorld.js) should work out of the box. For the remaining testcases you will need to adjust the [defines.js](examples/defines.js) to point to your setup.
You can run all examples as testcases with `npm test`
## Intefaces
Check the [main class](lib/mediaPlayer.js).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc