Project

General

Profile

Problem Adding URL (streamoftheworld.com)

Added by Pascual Lucero about 12 years ago

Hello,

I want to listen to some online station like this: http://provisioning.streamtheworld.com/pls/cfnyfm.pls

I can do it using VLC, Mplayer, etc, but I can't play it using Audacious (I am using the latest version, from the webupd8 repository).

Is this a missing feature? Should I install some library to do it? Thanks for your attention


Replies (6)

RE: Problem Adding URL (streamoftheworld.com) - Added by John Lindgren about 12 years ago

Our PLS parser wasn't written to be able to read files with an unknown file size (e.g. if the website didn't provide a "content-length" field in the HTTP header). It should work now with this change:
https://github.com/audacious-media-player/audacious-plugins/commit/47dcc58af9835489cff769d30d3cd9e4aadc08a8

RE: Problem Adding URL (streamoftheworld.com) - Added by Pascual Lucero almost 12 years ago

Thanks, although I have a question (I haven't tested the change you made in github, because I usually prefer to the next official version):

When I try to listed to the above station using VLC or a mplayer based program (like GNOME Mplayer), I have noticed this: VLC loads the pls file inmediately, but mplayer takes a while loading something before I can listen the station (it might several seconds, sometimes a minute, and less time if I play this from a terminal); in other words, the way they manage to reproduce .pls files from online stations is quite different. I tried with winamp in Windows and also loads inmediately.

After the change you made, the behavior is going to be like VLC or like Mplayer?

Thanks

RE: Problem Adding URL (streamoftheworld.com) - Added by John Lindgren almost 12 years ago

I think it was pretty quick to start playing when I tried it a couple weeks ago (I can't test at the moment).

RE: Problem Adding URL (streamoftheworld.com) - Added by Michał Lipski almost 12 years ago

Playback starts immediately here.

RE: Problem Adding URL (streamoftheworld.com) - Added by Joop Braak almost 12 years ago

Wouldn't that introduce a possible vulnerability (buffer overflow or so) if the length of the downloaded PLS file is not checked?

RE: Problem Adding URL (streamoftheworld.com) - Added by Lightning Rose almost 12 years ago

Joop, as an experienced programmer who's not involved with Audacious, the above code linked to by John Lindgren has no chance of buffer overflow.

What the rest of the code does with the data once it's read, I cannot attest to.

    (1-6/6)