Git Product home page Git Product logo

nodecast's Introduction

nodecast

ChromeCast Emulation with Node.js

  • Make sure to install all dependencies using npm install
  • Start the app (usage: node server.js --name Custom_Chromecast_Name)
  • Open up a browser (tested with Chrome 29 and Firefox) and point it to http://localhost:8008
  • nodecast should show up in Chrome Cast enabled applications (Google Music, YouTube)
  • You should allow popups for http://localhost:8008 to see the video/music screen

Tested with the following services: YouTube (Desktop, Android), Google Music (Android)

Notes

Inspired by leapcast by dz0ny

Bitdeli Badge

nodecast's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodecast's Issues

Chrome showing server as "Legacy", casting not working

Chrome (on the same host as the server) shows the server, but shows just a grey chrome symbol and Legacy below the server name.
pic

Upon clicking it and pressing the "send tab" button it tells me it failed transmitting because of a unknown error. The server console shows it accessing /ssdp/device-desc.xml(304) and /setup/eureka_info (404) while in the device listing, but it does not show any connection attempt upon pressing the send button.

Chrome and Google Cast are both on the latest version, the Google Cast Beta has the same problem.

The server works perfectly fine with the Youtube app on my phone(S4 GT-9505) though, but fails to show up in the Chromecast app, both device listing and screen sharing.

Is this a problem with nodecast using a older protocol or am i missing something obvious?

Stream encoding should not be set

Error: stream encoding should not be set at makeError (/nodecast/node_modules/body-parser/node_modules/raw-body/index.js:184:15)
at module.exports (/nodecast/node_modules/body-parser/node_modules/raw-body/index.js:60:15)
at read (/nodecast/node_modules/body-parser/lib/read.js:62:3)
at urlencodedParser (/nodecast/node_modules/body-parser/lib/types/urlencoded.js:84:5)
at /nodecast/node_modules/body-parser/index.js:81:7
at jsonParser (/nodecast/node_modules/body-parser/lib/types/json.js:75:36)
at Object.bodyParser as handle
at next (/nodecast/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.logger (/nodecast/node_modules/morgan/index.js:111:5)
at next (/nodecast/node_modules/express/node_modules/connect/lib/proto.js:193:15)

nodecast stopps working ( maybe because of closing browser window?)

I installed npm and start nodecast via a bat-file,.... i can access the localhost:8008, but then the servie stops working. this is what i find in the cmd-window:

C:\nodejs>nodecast-start

C:\nodejs>node server.js --name
Warning: Native modules not compiled. XOR performance will be degraded.
Warning: Native modules not compiled. UTF-8 validation disabled.
192.168.178.28
Registered App: ChromeCast
Registered App: YouTube
Registered App: PlayMovies
Registered App: GoogleMusic
Registered App: GoogleCastSampleApp
Registered App: GoogleCastPlayer
Registered App: Fling
Registered App: TicTacToe
Express server listening on port 8008
127.0.0.1 - - [Tue, 20 Aug 2013 15:11:56 GMT] "GET /favicon.ico HTTP/1.1" 404 -
"-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/28.0.1500.95 Safari/537.36"

C:\nodejs\node_modules\peer-ssdp\lib\peer-ssdp.js:297
headers[vv[1].toUpperCase()] = vv[2];
^
TypeError: Cannot read property '1' of null
at C:\nodejs\node_modules\peer-ssdp\lib\peer-ssdp.js:297:23
at Array.forEach (native)
at deserialize (C:\nodejs\node_modules\peer-ssdp\lib\peer-ssdp.js:294:11)
at Socket.onMessage (C:\nodejs\node_modules\peer-ssdp\lib\peer-ssdp.js:56:19
)
at Socket.EventEmitter.emit (events.js:98:17)
at UDP.onMessage (dgram.js:423:8)

C:\nodejs>

Nodecast doesn't appear as a casting device.

I am running nodecast and it says "ready to cast" yet neither my android or Chrome on Windows can detect it. I have a real Chromecast which works fine. I have noticed with the Google Cast extension, if I go to options then I can see nodecast listed under available cast devices, but I can't select it from that screen. Google cast says "No Cast devices found." when my real Chromecast is off.

Browser

I just want to ask how to configure it opens in opera gx and not in the microsoft edge browser pls let me know how to set up it. thx.

Please help, I can't install it

Hi, thank you for your kind support,
can you please explain to a stupid person like me how to install it?
I suppose I have to create a foldere where to put the file server.js and all the content of the zip file, so I did it in C:\nodecast-master, but when I execute it I hacve this output. What is going wrong? Can you please write a detain installation guide for newbies? Thank you a lot!

C:\Windows\System32>node C:\nodecast-master\server.js --name Custom_Chromecast_Name
internal/modules/cjs/loader.js:1032
throw err;
^

Error: Cannot find module 'peer-ssdp'
Require stack:

  • C:\nodecast-master\server.js
    �[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1029:15)�[39m
    �[90m at Function.Module._load (internal/modules/cjs/loader.js:898:27)�[39m
    �[90m at Module.require (internal/modules/cjs/loader.js:1089:19)�[39m
    �[90m at require (internal/modules/cjs/helpers.js:73:18)�[39m
    at Object. (C:\nodecast-master\server.js:1:12)
    �[90m at Module._compile (internal/modules/cjs/loader.js:1200:30)�[39m
    �[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)�[39m
    �[90m at Module.load (internal/modules/cjs/loader.js:1049:32)�[39m
    �[90m at Function.Module._load (internal/modules/cjs/loader.js:937:14)�[39m
    �[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)�[39m {
    code: �[32m'MODULE_NOT_FOUND'�[39m,
    requireStack: [ �[32m'C:\nodecast-master\server.js'�[39m ]

Error: getaddrinfo ENOTFOUND

I am unable to run the app using node 0.10.15, I did an npm install, and see the following when I run:

Registered App: ChromeCast
Registered App: YouTube
Registered App: PlayMovies
Registered App: GoogleMusic
Registered App: GoogleCastSampleApp
Registered App: GoogleCastPlayer
Registered App: Fling
Registered App: TicTacToe
Express server listening on port 8008

events.js:71
throw arguments[1]; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND
at errnoException (dns.js:37:11)
at Object.onanswer as oncomplete

Does emulation still work?

Following the instructions on the readme file I can only see the 'nodecast' in the list inside the chrome extention settings, it does not show in the list of devices to cast a tab to. Has something change which has broken this so it is unable to emulate a chrome cast?

[cv2.CastChannelCreator] [INFO] Opening channel to 
{"ipAddress":"192.168.1.32","port":8009,"auth":"ssl_verified","timeout":20000}

[cv2.CastChannelService] [WARNING] Channel error: {"channelId":164,"connectInfo"
{"auth":"ssl_verified","ipAddress":"192.168.1.32","port":8009},"errorState":"connect_error","readyState":"closed","url":"casts://192.168.1.32:8009"},
{"errorState":"connect_error","eventType":24,"netReturnValue":-1}

Error: Cannot find module 'peer-ssdp'

I get this error when running,

node server.js

after having installed npm without issues:

C:\Dev\nodecast-master>node server.js

module.js:340
throw err;
^
Error: Cannot find module 'peer-ssdp'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (C:\Dev\nodecast-master\server.js:1:74)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

I know I'm a total n00b, but I just can't figure it out! Could you help me?

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.