Giter Site home page Giter Site logo

derhuerst / search-fasp-receivers Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 11 KB

Search for Friendly Audio Streaming Protocol receivers in the local network.

Home Page: https://github.com/derhuerst/search-fasp-receivers#search-fasp-receivers

License: ISC License

JavaScript 100.00%
audio streaming fasp

search-fasp-receivers's Introduction

search-fasp-receivers

Search for Friendly Audio Streaming Protocol receivers in the local network.

Note: search-fasp-receivers works only in Node, because it needs access to mDNS to find the receivers.

npm version ISC-licensed chat with me on Gitter support me on Patreon

Installing

npm install search-fasp-receivers

Usage

const search = require('search-fasp-receivers')

const version = '2' // FASP version
const timeout = 5 * 1000

search.byName('alice-fasp-receiver', version, timeout, (err, service) => {
	if (err) console.error(err)
	else console.log('found', service.host, service.port)
})

If you know the ID of a receiver, it is safer to search using this instead of the name:

search.byId('86af5e4a3c62635d', version, timeout, (err, service) => {
	// …
})

API

search.byId(id, version, [timeout], cb)
search.byName(name, version, [timeout], cb)

A version version of null means any version.

Contributing

If you have a question or have difficulties using search-fasp-receivers, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

search-fasp-receivers's People

Contributors

derhuerst avatar

Watchers

 avatar  avatar

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.