xat / chromecast-player Goto Github PK
View Code? Open in Web Editor NEWsimple chromecast player
License: MIT License
simple chromecast player
License: MIT License
I'm trying to decipher where I could specify the name of a local chromecast so I could attach and send commands to that chromecast only. Any advice?
When querying the state of the Chromecast using getCurrentSession, the 2nd parameter on the callback says that the chromecast is not muted. Even after muting it with this lib.
I'm using v0.2.3 with a 1st generation Chromecast.
How to change the content-type you send to the chromecast ?
Hi ! Thanks !
I own a chromecast key model H2G2-42. With castnow, I have many timeouts with defaults.ttl set to 10000... no more timeouts with 20000.
https://github.com/xat/chromecast-player/blob/master/index.js#L16
The new chromecast-player version I'm working on will have a simple plugin api (see the dev branch). there for I wanted to create a sample youtube plugin.
I managed to attach the player to an already running youtube session which I started from the browser. I was able todo stuff like play() or pause().
However, I was not able to start the playback of a youtube video. What I found out so far is, that the youtube appId is 233637DE
, the contentId seems to be the youtube-id (e.g. aT5VZBeMz_g
) and the contentType is x-youtube/video
. When trying to load, the Chromecast device returns INVALID_PLAYER_STATE as error.
@thibauts do you have any thoughts on this?
Previous versions of this api (0.0.6) allowed directly access to the metadata
property on node-castv2-client
. Is it still possible to do this?
Very nice project ;) I only have a problem with getVolume, the callback gets null instead of the volume, what am I doing wrong?
var player = require('chromecast-player')();
player.attach(function (err, p) {
p.getVolume(function (vol) {
console.log(vol);
});
});
Has anyone figured this out?
castv2-client supports it: https://github.com/thibauts/node-castv2-client/wiki/How-to-use-subtitles-with-the-DefaultMediaReceiver-app#enabling-subtitles
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.