https://github.com/derhuerst/fasp-server
A server for the Friendly Audio Streaming Protocol.
https://github.com/derhuerst/fasp-server
audio fasp streaming
Last synced: 5 months ago
JSON representation
A server for the Friendly Audio Streaming Protocol.
- Host: GitHub
- URL: https://github.com/derhuerst/fasp-server
- Owner: derhuerst
- License: isc
- Created: 2018-04-06T23:20:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-07T18:13:14.000Z (over 5 years ago)
- Last Synced: 2025-02-07T23:47:47.763Z (5 months ago)
- Topics: audio, fasp, streaming
- Language: JavaScript
- Homepage: https://github.com/derhuerst/fasp-server#fasp-server
- Size: 42 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# fasp-server
**A server for the [Friendly Audio Streaming Protocol](https://github.com/derhuerst/friendly-audio-streaming-protocol).**
Use [`fasp-server-cli`](https://github.com/derhuerst/fasp-server-cli) if you want to run a server from the command line.
Because `fasp-server` is based on the wonderful [`mpv`](https://mpv.io/), it can play [audio from many sources](https://mpv.io/manual/stable/#protocols).
[](https://www.npmjs.com/package/fasp-server)

[](https://gitter.im/derhuerst)
[](https://patreon.com/derhuerst)## Installing
Install [`mpv`](https://mpv.io/). Refer to [their installation page](https://mpv.io/installation/) for further details.
```shell
# macOS
brew install mpv
# Ubuntu or similar
sudo add-apt-repository ppa:mc3man/mpv-tests
sudo apt update
sudo apt install mpv
```On many Linux systems, you also need the `dns_sd.h` headers for [mDNS](https://en.wikipedia.org/wiki/Multicast_DNS).
```js
# Ubuntu or similar
sudo apt install libavahi-compat-libdnssd-dev
```Then, install `fasp-server`.
```shell
npm install fasp-server
```## Usage
```js
const createServer = require('fasp-server')const server = createServer((err, info) => {
if (err) {
console.error(err)
process.exitCode = 1
} else {
console.info('port', info.port)
}
})
```Control the server programmatically using [`fasp-client`](https://github.com/derhuerst/fasp-client), or from the command line using [`fasp-client-cli`](https://github.com/derhuerst/fasp-client-cli).
## Contributing
If you have a question or have difficulties using `fasp-server`, 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](https://github.com/derhuerst/fasp-server/issues).