Search code examples
javascriptjquerymp3

How to play binary MP3 stream with jQuery/Javascript?


I'm getting a pure binary MP3 stream from an ajax call. No headers, nothing. Just straight MP3 bits. (Actually is that really even a stream at all?)

I'd like to be able to play it in a web page (and, if possible, offer it for downloading).

Is this possible? And if so what's the best way to do it?

If it is not possible, what are some other ways to handle this?


Solution

  • You cant play music with pure javascript. you will need to get that stream and pass it to a flash player.

    try JW flash player, though i am not sure if it can handle the type of stream you are talking about. you will have to do some research about what it can handle