node-stream-player icon indicating copy to clipboard operation
node-stream-player copied to clipboard

ENOENT: no such file or directory

Open alexey-sh opened this issue 7 years ago • 2 comments

Hi

var StreamPlayer = require('stream-player');
var player = new StreamPlayer();
player.add('https://ia802508.us.archive.org/5/items/testmp3testfile/mpthreetest.mp3');

player.play();

throws the error

events.js:154
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open 'https://ia802508.us.archive.org/5/items/testmp3testfile/mpthreetest.mp3'
    at Error (native)

alexey-sh avatar May 01 '17 16:05 alexey-sh

Try this fork here, this might work: https://github.com/rgeraldporter/node-stream-player

It's been a while since I wrote that fix, and I don't actually recall the exact problem I had that I wrote a fix for, but it sounds like it may be related to the issue you're having. If so maybe I can get a PR together for this project, though I think I'm still having some unit test failures that I can't nail down.

rgeraldporter avatar Jun 21 '17 13:06 rgeraldporter

I haven't had much time lately to dedicate to this project. If you make a PR, I'm more than happy to take a look at it. I can also look into the related unit test problem this weekend

michael-gillett avatar Jun 21 '17 14:06 michael-gillett