Page 1 of 1

Internet radio (proof of concept)

Posted: Fri May 22, 2020 7:02 pm
by hidnplayr
Proof of concept MP3/OGG/FLAC/AAC/.. over HTTP player.

Requires night build #8024 or newer.
Requires minimp3.obj (13kb), stb_vorbis.obj (21kb), dr_flac.obj (22kb) and uaac.obj (72kb)

TODO:
- Bugfixes, sanity checks, improved buffering..
- WAV, OGG Vorbis, (OGG/Native) FLAC, (MP4) AAC(-HC), OGG Opus.. support
- Automatic content type detection from file/stream
- Play files from disk
- Playlists (PLS/M3U/M3U8)
- MPD protocol support
- ...

EDIT: updated TODO list, updated attachment

Re: Internet radio (proof of concept)

Posted: Sat May 23, 2020 12:57 am
by Leency
1. Listeting for a Radio 20 min in Qemu => OK.

2. I think it would be nice to use: player <radio_url>
If <radio_url> is not set then use default one.

3. Probably a simple GUI like /sys/network/downloader could be the case for this player.

4. I will add a Radio support into a Pixie.
Logic is the next: have a new type of file:
icecast.vrtcdn.be.netradio
last.fm.netradio
Each file contains just an URL.
Pixie with show a list of files in folder so user could switch between them.

Re: Internet radio (proof of concept)

Posted: Sun May 24, 2020 3:37 pm
by hidnplayr
Leency wrote: 4. I will add a Radio support into a Pixie.
Logic is the next: have a new type of file:
icecast.vrtcdn.be.netradio
last.fm.netradio
Each file contains just an URL.
Pixie with show a list of files in folder so user could switch between them.
Since I prefer not to spend too much time to create the UI, I think it's a good idea to separate the player back end from the user interface.
My proposal however would be to use an already established protocol, which has many advantages.
(Player can be controlled from other PC, app on phone, ... Or KolibriOS if someone writes/ports MPD client)

https://en.wikipedia.org/wiki/Music_Player_Daemon
(protocol is quite simple, see reference: https://www.musicpd.org/doc/html/protocol.html)

Re: Internet radio (proof of concept)

Posted: Sun May 31, 2020 12:41 pm
by hidnplayr
Now with OGG vorbis!

Re: Internet radio (proof of concept)

Posted: Sun May 31, 2020 12:51 pm
by hidnplayr
Leency wrote: 4. I will add a Radio support into a Pixie.
Logic is the next: have a new type of file:
icecast.vrtcdn.be.netradio
last.fm.netradio
Each file contains just an URL.
Pixie with show a list of files in folder so user could switch between them.
No need for a new type of file, you can give such file M3U extension!
https://web.archive.org/web/20110716014 ... st_m3u.asp

It is the way many webradios work, they link to a .m3u file containing the actual URL of the radio.

Re: Internet radio (proof of concept)

Posted: Sat Jun 06, 2020 12:43 am
by hidnplayr
Added support for (OGG)FLAC and (MP4)AAC radio!

:!: Unfortunately, AAC has some licensing blabla which currently prevents me from releasing the binaries for it..