Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raspbian on rPI 2 B #2

Open
pastynko opened this issue Dec 16, 2015 · 2 comments
Open

raspbian on rPI 2 B #2

pastynko opened this issue Dec 16, 2015 · 2 comments

Comments

@pastynko
Copy link

Hello,

I'm trying to install dlnacast on latest Raspbian on my Raspberry PI 2 B but I'm unable to get the version 0.3 working. Version 0.2, which I can get from npm is working with Kodi, but not with my LG TV. So I tried to install 0.3 from this github, but now I'm getting following errors.

dlnacast --listRenderer will show me this:
[TV][LG]Bar: http://192.168.2.86:1489/
[TV][LG]Bar: http://192.168.2.86:1489/

http.js:1839
if (options.protocol && options.protocol !== 'http:') {
^
TypeError: Cannot read property 'protocol' of undefined
at Object.exports.request (http.js:1839:14)
at Object.exports.get (http.js:1847:21)
at fetch1 (/usr/local/lib/node_modules/dlnacast/node_modules/renderer-finder/src/RendererFinder.js:12:18)
at getDeviceDescription (/usr/local/lib/node_modules/dlnacast/node_modules/renderer-finder/src/RendererFinder.js:87:3)
at Socket. (/usr/local/lib/node_modules/dlnacast/node_modules/renderer-finder/src/RendererFinder.js:141:11)
at Socket.emit (events.js:98:17)
at UDP.onMessage (dgram.js:440:8)

dlnacast --address 192.168.2.86 /path/to/file will show this:
Request failed
playing: test4.mp4
use your space-key to toggle between play and pause

events.js:72
throw er; // Unhandled 'error' event
^
Error: Request failed
at ClientRequest. (/usr/local/lib/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/index.js:551:18)
at ClientRequest.g (events.js:180:16)
at ClientRequest.emit (events.js:95:17)
at HTTPParser.parserOnIncomingClient as onIncoming
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socketOnData as ondata
at TCP.onread (net.js:527:27)

and playback is not working... Any change you can point me to the right direction what might be the problem?

Thank you in advance!

@pastynko
Copy link
Author

UPDATE:

I was getting previous error messages when I was on old version of node.js (0.12). Once I upgraded to latest version of node.js (5.2.0) and npm (3.5.2) I'm getting these errors:

dlnacast --listRenderer

osmc@osmc:~$ dlnacast --listRenderer
events.js:142
throw er; // Unhandled 'error' event
^

TypeError: Cannot read property 'root' of undefined
at /usr/lib/node_modules/dlnacast/node_modules/renderer-finder/src/RendererFinder.js:42:22
at Parser. (/usr/lib/node_modules/dlnacast/node_modules/xml2js/lib/xml2js.js:487:18)
at emitOne (events.js:78:13)
at Parser.emit (events.js:170:7)
at Object.onerror (/usr/lib/node_modules/dlnacast/node_modules/xml2js/lib/xml2js.js:308:26)
at emit (/usr/lib/node_modules/dlnacast/node_modules/sax/lib/sax.js:639:35)
at error (/usr/lib/node_modules/dlnacast/node_modules/sax/lib/sax.js:668:5)
at strictFail (/usr/lib/node_modules/dlnacast/node_modules/sax/lib/sax.js:692:7)
at closeTag (/usr/lib/node_modules/dlnacast/node_modules/sax/lib/sax.js:885:9)
at Object.write (/usr/lib/node_modules/dlnacast/node_modules/sax/lib/sax.js:1436:13)

and dlnacast --address ipaddress /path/to/file

osmc@osmc:~$ dlnacast --address 192.168.2.86 /home/osmc/test/test4.mp4
_http_client.js:27
throw new Error('Unable to determine the domain name');
^
Error: Unable to determine the domain name
at new ClientRequest (_http_client.js:27:13)
at Object.exports.request (http.js:32:10)
at Object.exports.get (http.js:36:21)
at fetch (/usr/lib/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/index.js:549:18)
at MediaRendererClient.DeviceClient.getDeviceDescription (/usr/lib/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/index.js:44:3)
at MediaRendererClient.DeviceClient.getServiceDescription (/usr/lib/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/index.js:58:8)
at MediaRendererClient.DeviceClient.callAction (/usr/lib/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/node_modules/upnp-device-client/index.js:88:8)
at MediaRendererClient.load (/usr/lib/node_modules/dlnacast/node_modules/upnp-mediarenderer-client/index.js:119:8)
at runDLNA (/usr/lib/node_modules/dlnacast/index.js:123:13)
at /usr/lib/node_modules/dlnacast/index.js:111:11

@drJeckyll
Copy link

Could you try:
dlnacast --address http://192.168.2.86:1489/ /home/osmc/test/test4.mp4
or put after --address full url from --listRenderer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants