Comments (8)
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.
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.
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.
I solved it by adding to the end
setTimeout(function() {},5000)
Now I can get results
from node-ssdp.
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.
@soloam is this a non-issue, then? Can we close this?
from node-ssdp.
@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.
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)
- Please add documentation of all public methods
- Unexpected IP Address In SSDP Server Advertising
- Description of search
- Handle ssdp:byebye
- Default behaviour with multiple NICs is not good
- TypeError: mDgram.createSocket is not a function
- Client and Server examples appear to be wrong.
- 'npm audit' shows dependency on a vulnerable version of async
- Creating client always ends in "No sockets available, cannot start." HOT 2
- Unhandled promise rejection HOT 1
- Using pkg to create stand-alone executable HOT 1
- is there any code error? HOT 2
- Dependency on dgram? HOT 3
- ssdp server sending [object Object] string on LOCATION instead the right value HOT 1
- startServer() should fail if no ipaddress available HOT 2
- Can't build project with webpack: Error: Can't resolve './lib-cov/client' HOT 4
- Server.stop() fails to wait for 'bye' to complete before killing sockets.
- Error: write ENOTSUP HOT 1
- Not response if more than one host (win 7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ssdp.