Giter Site home page Giter Site logo

Comments (8)

diversario avatar diversario commented on June 12, 2024

I searched around and found this. What if you try giving that URN as the search argument? Possible that what's in the example doesn't match what the TV expects.

from node-ssdp.

soloam avatar soloam commented on June 12, 2024

It works now, I can only find when I use the timer, if I do only a search it stops before finding anything, If I set a timer it starts finding.

Got a response to an m-search: 200 { "CACHE-CONTROL": "max-age=1800", "EXT": "", "LOCATION": "http://192.168.1.xx:55000/pac/ddd.xml", "SERVER": "FreeBSD/8.0 UPnP/1.0 Panasonic-MIL-DLNA-SV/1.0", "ST": "urn:panasonic-com:service:p00ProAVControlService:1", "USN": "uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx::urn:panasonic-com:service:p00ProAVControlService:1" } { "address": "192.168.1.xx", "family": "IPv4", "port": 20299, "size": 316 }

But I can't see the youtube cast, from the TV or the TubeCast

Thank You

from node-ssdp.

yocontra avatar yocontra commented on June 12, 2024

Hmm, it seems like the issue might be that search doesn't keep the process open so it ends before getting a response. I'm having the same issue right now.

from node-ssdp.

soloam avatar soloam commented on June 12, 2024

I solved it by adding to the end

setTimeout(function() {},5000)

Now I can get results

from node-ssdp.

diversario avatar diversario commented on June 12, 2024

Right, so, node process will exit if there's nothing keeping it up; that's why in the example there's a setTimeout bit, to keep it running.

from node-ssdp.

diversario avatar diversario commented on June 12, 2024

@soloam is this a non-issue, then? Can we close this?

from node-ssdp.

yocontra avatar yocontra commented on June 12, 2024

@diversario The issue is that node-ssdp should keep it open until the Client is closed (it is an open socket, isn't it?), you shouldn't have to manually ref the process via setinterval noops.

from node-ssdp.

mroch avatar mroch commented on June 12, 2024

removing the socket.unref() in SSDP.prototype._createSockets also fixes this issue. it'll stay listening until you close the sockets by calling client.stop().

from node-ssdp.

Related Issues (20)

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.