neon-rodio
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

neon-rodio

Rodio for Node.js

neon-rodio allows you to play music files using javascript

Installation

npm install neon-rodio
yarn add neon-rodio

Usage

const NeonRodio = require("../../neon-rodio");

const player = new NeonRodio();

player.load("path/to/test.wav");

APIs

.empty(): boolean;                // check if playback is empty
.load(url: string): boolean;      // load music file (return true if loading succeeded)
.pause(): void;                   // pause playback
.play(): boolean;                 // resume playback (return true if playback doesn't end)
.volume(level: number): void;     // set player volume (0-100)
.stop(): void;                    // stop playback

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i neon-rodio

      Weekly Downloads

      1

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      1.84 MB

      Total Files

      12

      Last publish

      Collaborators

      • yxl76