Here is a new add-on that adds support for HLS (HTTP Live Streaming) streams: www.un4seen.com/stuff/basshls.zip (updated: 6 Feb '17)
Win32/OSX/Linux/Android/iOS/WinStore versions are included. Dedicated BASS_HLS_StreamCreateURL and BASS_HLS_StreamCreateFile functions are provided, and it can also be used via the plugin system. Although local HLS playlist files are supported, the media segments in the playlist currently must be URLs.
HLS streams consist of a media playlist (and optionally a master playlist) and segments. The media segments usually have AAC data, but MP3 or AC3 are also possible. BASSHLS should support any audio format that's supported by BASS or a plugin. The data is usually in an MPEG-TS container, but it can also be plain audio data, possibly with ID3v2 tags. As well as possibly ID3v2 tags, the current segment's EXTINF tag (which may include a title) in the media playlist is available via the new BASS_TAG_HLS_EXTINF tag type. If present, the ID3v2 tags can/will change with each segment. A BASS_SYNC_HLS_SEGMENT sync type has been added to be informed of when a new segment starts downloading, which could be used to refresh the tags. A BASS_FILEPOS_HLS_SEGMENT BASS_StreamGetFilePosition option has also been added to get the current segment's sequence number.
When a master playlist is passed to BASSHLS, it will play the first entry from it. If you would like to play a different entry (eg. perhaps for a different bitrate), you can download the master playlist separately and then extract and pass the wanted entry's URL to BASSHLS.
A subset of the HLS spec
is currently supported. The supported tags are: EXTINF, EXT-X-BYTERANGE, EXT-X-ENDLIST, EXT-X-KEY, EXT-X-MEDIA-SEQUENCE, EXT-X-TARGETDURATION. That seems to be sufficient, but please report if you find any HLS streams that aren't working properly. If you are looking for test streams, a bunch of streams can be found here: www.radiofeeds.co.uk/other.asp www.addictradio.net/en/labs/
It seems to be working nicely so far, but it's still early days for BASSHLS. Please report any problems/suggestions/etc that you may have.