thibauts / node-upnp-mediarenderer-client

An UPnP/DLNA MediaRenderer client
MIT License
126 stars 30 forks source link

TypeError: client.on is not a function #26

Closed vitalets closed 7 years ago

vitalets commented 7 years ago

Got this error when running example from readme...

thibauts commented 7 years ago

Please post the exact code you ran here. I'll look into it

vitalets commented 7 years ago
var MediaRendererClient = require('upnp-mediarenderer-client');
var client = new MediaRendererClient('http://192.168.1.50:4873/foo.xml');
console.log(client.on)

outputs undefined

vitalets commented 7 years ago

I got the reason. I was using old version of package.

thibauts commented 7 years ago

;) OK

vitalets commented 7 years ago

BTW, @thibauts could you point the direction how to stream video from website (e.g. youtube or vimeo) on TV via mediarenderer-client ?