Bug 470884

Summary: Elisa player can't play playlist radio streams (.pls, .m3u)
Product: [Applications] Elisa Reporter: Dave <sunny.bed7466>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: CONFIRMED ---    
Severity: normal CC: nate
Priority: NOR    
Version: 23.04.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Dave 2023-06-10 20:09:32 UTC
SUMMARY
Several internet radio stations offer a playlist file as the resource used to tune to their stream. These are unusable in Elisa at the moment.

Streams that I have confirmed work with Elisa come in the form of MPEG ADTS

> checking the file format of a stream saved to disk
$ curl -o out 'https://radiointernet.co:7000'
$ file out
out: MPEG ADTS, layer III, v1, 32 kbps, 44.1 kHz, JntStereo

Streams that do not work with Elisa are playlists

$ curl -o airout 'http://airspectrum.cdnstream1.com:8114/1648_128.m3u'
$ file airout
airout: ASCII text, with CRLF line terminators

>airout content
http://airspectrum.cdnstream1.com:8114/1648_128

$ curl -o pls 'http://79.98.108.170:8117/listen.pls?sid=1'
$ file pls
pls: PLS playlist, ASCII text

>pls content
[playlist]
NumberOfEntries=1
File1=http://79.98.108.170:8117/stream
Title1=Extreme Deep House Radio
Length1=-1
Version=2%

If you manually add the url of the internal playlist entry, now you can play that radio station.

STEPS TO REPRODUCE
1. Add the following radio stations to Elisa:

http://airspectrum.cdnstream1.com:8114/1648_128.m3u
http://79.98.108.170:8117/listen.pls?sid=1
https://radiointernet.co:7000

2. Play each added radio station.play in Elisa.

OBSERVED RESULT
Elisa should not be able to play the first two radio stations. The last radio station should work fine. If you extract the real audio streams out of the playlists, you should be able to stream them with Elisa.

EXPECTED RESULT
Elisa plays all of the most common radio stream formats (playlist or pure audio stream) out of the box.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 37
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9