1.0.18 • Published 2 years ago

@nesorter/lib v1.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@nesorter/lib

Standalone solution for audio streaming

Set of utils for audio streaming

Usage example

import { Streamer, FileSystemScanner, Queue } from '@nesorter/lib';

// with this options webradio should be available
// on 'http://localhost:3000/listen'
const streamer = new Streamer(3000, '/listen');

// sets root path for scanning audio library
const scanner = new FileSystemScanner('/home/user/music');

// create play queue
const queue = new Queue(streamer);

// compose all: scan-audio-lib -> add-to-queue -> start-queue
scanner.scan()
  .then((items) => items.map((item) => queue.add(item.fullPath)))
  .then(() => queue.startQueue());
1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago