xat / castnow

commandline chromecast player
MIT License
3.81k stars 243 forks source link

Audio works, no video #113

Closed Jess3Jane closed 8 years ago

Jess3Jane commented 9 years ago

Castnow plays audio just fine from my arch box, but I cannot play video. I have tried with two files, an .avi and an .mp4 The .avi just refuses to work. The .mp4 plays the audio of the video, but the screen is filled with one unmoving image from one of the first frames. Debug options do not show any errors or anything of that sort. Also, the --tomp4 option returns the following error: /usr/lib/node_modules/castnow/index.js:127 if (!status.media || ^ TypeError: Cannot read property 'media' of undefined

yardenac commented 9 years ago

I'm having this same issue on arch linux. Not having a problem with mp4 files, and I wouldn't expect avi files to work as-is, but "--tomp4 file.avi" does cause a crash like this:

/usr/lib/node_modules/castnow/index.js:127
      if (!status.media ||
                 ^
TypeError: Cannot read property 'media' of undefined
    at /usr/lib/node_modules/castnow/index.js:127:18
    at /usr/lib/node_modules/castnow/node_modules/chromecast-player/api.js:69:7
    at RequestResponseController.onmessage (/usr/lib/node_modules/castnow/node_modules/castv2-client/lib/controllers/request-response.js:27:7)
    at RequestResponseController.emit (events.js:129:20)
    at Channel.onmessage (/usr/lib/node_modules/castnow/node_modules/castv2-client/lib/controllers/controller.js:16:10)
    at Channel.emit (events.js:110:17)
    at Client.onmessage (/usr/lib/node_modules/castnow/node_modules/castv2-client/node_modules/castv2/lib/channel.js:23:10)
    at Client.emit (events.js:129:20)
    at PacketStreamWrapper.onpacket (/usr/lib/node_modules/castnow/node_modules/castv2-client/node_modules/castv2/lib/client.js:79:10)
    at PacketStreamWrapper.emit (events.js:107:17)
yardenac commented 9 years ago

Never mind, this crash was fixed by f557076e569ce36c5808eac4e46abd723af7b780 and I had to switch from the old AUR package "castnow" to the newer "castnow-git"

hemanth commented 8 years ago

:+1: