Board.KolibriOS.org

Official KolibriOS board
It is currently Wed Dec 02, 2020 7:24 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri May 22, 2020 7:02 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1276
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


Attachments:
File comment: Source code and binary for proof of concept player with MP3,OGG,FLAC and AAC support. Decoder libraries not included.
player.7z [13.34 KiB]
Downloaded 33 times

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
Top
   
PostPosted: Sat May 23, 2020 12:57 am 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5336
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.

_________________
Звиздеть не мешки ворочать


Top
   
PostPosted: Sun May 24, 2020 3:37 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1276
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)

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Sun May 31, 2020 12:41 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1276
Now with OGG vorbis!

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Sun May 31, 2020 12:51 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1276
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.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Sat Jun 06, 2020 12:43 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1276
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..

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited