I'm currently implementing a plugin to stream radio from last.fm. After initial handshakes you can retrieve a xspf playlist, which is easy enough to parse and use the mp3 locations for playing. However I'm also trying to add support for handling the "lastfm://" URLs, and I'm not sure how to do this.
If I understand correctly, if I use a class based on input_impl I can use the g_is_our_path method to identify the "lastfm://" part of the path successfully, but then I need to implement the audio decoding, and maybe treat each location as a subsong. More logical would be to derive from the playlist_loader class (as I'm effectively trying to load a playlist), but I can't do this as the get_extension method only considers the extension which the URLs don't have.
If anyone has any hints or ideas it would be greatly appreciated.