This project has moved. For the latest updates, please go here.

PLS multiple entries

Sep 16, 2014 at 10:12 AM
Are there plans to get multiple items parsing?
There are so many radios with multiple streams ...
Sep 17, 2014 at 2:07 AM
I hadn't really looked at it. That code should be pretty straight forward to customize. If you look in PlsSegmentManagerFactory.cs, the bit in CreateManagerAsync that reads,
            var tracks = pls.Tracks;

            if (tracks.Count < 1)
                return null;

            if (tracks.Count > 1)
                Debug.WriteLine("PlsSegmentManagerFactory.CreateSegmentManager() multiple tracks are not supported");

            var track = tracks.First();
would need to be customized to pick the stream you want instead of always picking the first stream. Adding a callback similar to the one used for M3U8 playlists should be simple enough, but IIRC, the last time I looked at it I thought I should wait until I had a better idea than adding another static member.