1.0.18 • Published 4 months ago
@nesorter/lib v1.0.18
@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
4 months ago
1.0.17
4 months ago
1.0.16
4 months ago
1.0.15
8 months ago
1.0.14
8 months ago
1.0.13
8 months ago
1.0.12
8 months ago
1.0.11
8 months ago
1.0.10
8 months ago
1.0.9
8 months ago
1.0.8
8 months ago
1.0.7
8 months ago
1.0.5
8 months ago
1.0.4
8 months ago
1.0.3
8 months ago
1.0.2
8 months ago
1.0.1
8 months ago
1.0.0
8 months ago