23

I am having a problem with this for a while now, so I thought I'd ask for your help.

For a proof of concept project, I created a HTML 5 only last.fm player using jPlayer . It works fine with Firefox, but does not play using the html solution when using Chrome(Chromium).

First, Chrome tries to fetch the mp3 file via the stream url. After it has pre-buffered a bit, it always tries to read the last 128 bytes by making another HTTP request. The problem now is that the last.fm streaming servers only seem allow one connection per file at a time, which causes both http connections to fail. It seems Chrome/Chromium is ignoring the preload="none" property of the audio tag. As far as I could find out the tag is only a recommendation to the browser.

Normal mp3 files work like a charm. Also, when entering the redirected streaming url in the browser, it starts playing. It seems last.fm is using the original urls as kind of one-time access token/access control filter, whereas the resolved stream url is valid for a while.

For the full HTTP headers (cookies censored), see http://pastebin.com/rBAdL4X8. (Copied from Chromium element inspector).

Is there any way to circumvent this problem from within the browser?

4

1 回答 1

4

目前似乎没有解决方法,但从 neoascetic 指出的错误报告的评论 11 中,它可能会在 Chrome 的下一个版本 - M20 中得到解决。

于 2012-04-12T12:59:19.297 回答