How to play media files from URLs in media player, not browser?

asked 2015-03-15 19:23:44 +0200

mr_jrt gravatar image

I'm trying to set up my web radio bookmarks on my new Jolla, but I can't seem to. Unlike my old N900 there's just no interface for adding the URLs of the streams.

...and when I click on them in the browser, they play in there rather than launching the media player, i.e. http://rainwave.cc/tune_in/5.mp3

Please don't tell me a new user-experience-centric mobile OS requires me to add them via manually putting together playlists in the terminal... :(

edit retag flag offensive close delete

Comments

Good question, I can't even navigate the site properly, let alone get anything to play. Most playlist files do not end in an audio file extension. .M3U or ,PLS play reliably on Jolla, but when I click the link you provided on my PC, it does indeed download an .M3U file ready to click on and play with my favourite mediaplayer, but on Jolla, I get HTTP 404 - File Not found. Please check your example to give us a better idea of the problem.

Spam Hunter ( 2015-03-15 19:51:43 +0200 )edit

Having done a bit more poking, seems they do something with the headers that I suspect the browser doesn't handle properly. From my desktop browser:

Request:

GET /tune_in/5.mp3 HTTP/1.1
Host: rainwave.cc
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:36.0) Gecko/20100101 Firefox/36.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://rainwave.cc/
Cookie: <cookie content>
Connection: keep-alive

Response:

HTTP/1.1 200 OK
Date: Sun, 15 Mar 2015 18:03:06 GMT
Content-Type: audio/x-mpegurl
Content-Length: 562
Connection: keep-alive
Content-Disposition: inline; filename="rainwave_all_mp3.m3u"
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Server: TornadoServer/3.2.2
Etag: "bb2bc56fb9272f9494be006c3045190d456d5deb"
Cache-Control: no-cache, must-revalidate
Set-Cookie: <cookie content>

...so I guess the Jolla browser doesn't handle Content-Disposition headers correctly? - Though that mimetype looks suspect to me for a playlist...

mr_jrt ( 2015-03-15 20:07:17 +0200 )edit