guo-yu/player

Playing stream without extension

Opened this issue · 0 comments

Playing streams ending in .mp3 seems to be no problem, but is there any chance it can play streams like http://live.nsbradio.co.uk:8904/ too? As far as I can figure out that's the correct stream (even though it shows a page when browsing to it). The content type is audio/mpeg, but without the extension I get an error like

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

Error: EISDIR: illegal operation on a directory, read
    at Error (native)

Cutting off the ending slash (/) produces

{ [Error: Parse Error] bytesParsed: 0, code: 'HPE_INVALID_CONSTANT' }