castnow
castnow copied to clipboard
Castnow fails with Error: Load fails on Centos 7.1
DEBUG=castnow* castnow --myip=10.0.0.53 --address=10.0.0.24 ./my_video.mp4 castnow launching... +0ms castnow:stdin [ { path: './my_video.mp4' } ] +5ms castnow:localfile started webserver on address 10.0.0.53 using port 4100 +30ms castnow player status: loading plugins +1ms castnow player status: scanning +2ms castnow player status: connecting +3ms castnow player status: launching +112ms castnow player status: loading +1s castnow player error: Error: Load failed at /usr/lib/node_modules/castnow/node_modules/chromecast-player/api.js:104:19 at RequestResponseController.onmessage (/usr/lib/node_modules/castnow/node_modules/castv2-client/lib/controllers/request-response.js:27:7) at emitTwo (events.js:111:20) at RequestResponseController.emit (events.js:191:7) at Channel.onmessage (/usr/lib/node_modules/castnow/node_modules/castv2-client/lib/controllers/controller.js:16:10) at emitTwo (events.js:106:13) at Channel.emit (events.js:191:7) at Client.onmessage (/usr/lib/node_modules/castnow/node_modules/castv2/lib/channel.js:23:10) at emitMany (events.js:132:20) at Client.emit (events.js:201:7) +1s Error: Load failed
Things noted:
- We are connected to the correct device
- It does begin loading on both ends visibly
- The crash issue seems to be tied to the response it receives from the device
Tried with: MKV, MP4, Youtube
@seanrivera , that is symptomatic of the chromecast being unable to connect back to your castnow instance. Verify that firewalld.service is not blocking request to port 4100 from 10.0.0.24.
@jamespfinn thanks for that tip, any thoughts on checking that on an OSX machine? The firewall is off in the settings, so not sure why that port would be blocked. Casting from the normal Chromecast extension in the browser works fine. Thanks for the help!
**Edit, as usual, taking a break usually provides the solution.
For future OSX users with this problem, if your firewall is off (like mine was), and you get the same error as above (the response fails), then Chromecast can't find your device to connect back to. Simply pass in your IP address using the --myip
flag.
Eg: castnow ./myfile.mp4 --myip <your-ip-address>