How to play binary MP3 stream with jQuery/Javascript?

前端 未结 5 1152
独厮守ぢ
独厮守ぢ 2021-01-14 00:01

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 b

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-14 00:48

    If you're only targeting very modern browsers, you could make use of data URL:s, and just write an object element to your HTML, and link to that data URL. Note: I havn't tried this.

提交回复
热议问题