M3U Music Player

Post

Posted
Rating:
#1 (In Topic #287)
Avatar
Regular
Cedron is in the usergroup ‘Regular’
(Edit:  There is a better version in the next post below.)

Attachment

So, I like to listen to music.  I'm pretty sure I am not alone with this.  I've been a little bit disappointed with the available Linux offerings in that none of them seem to be able to properly interpret Windows style M3U files.  Thus, with the handy dandy MediaPlayer, I was able to write one fairly easily in Gambas and here it is for you.

After I got the M3U and individual file stuff working, I decided it would be a whole lot more useful to be able to select files by directories.  It only took one button to accomplish that.  Geez, Gambas is easy.

Of course, it isn't fully polished, nor probably fully finished, but it does work and work the way I want.  I hope you all like it too.

Ced

.... and carry a big stick!
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Regular
Cedron is in the usergroup ‘Regular’
Attachment

Here is an improved version of the Music Player.  Thanks to Cogier, it is now expandable so going full screen is actually useful.

It works just like I want it to.  I only have one outstanding question for others:  Is no-repeat on random play a desirable feature?

Ced

.... and carry a big stick!
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Regular
stevedee is in the usergroup ‘Regular’

Cedron said

… I only have one outstanding question for others:  Is no-repeat on random play a desirable feature?

Assuming that you mean no single track should be repeated in a random playlist of music files; I would agree. What people generally seem to want is a pseudo-random list, not a truly random one. They don't want to hear the same track played twice.

BTW, my player updates the playlist each time the player is started (in case files have been added or removed from the player):-

Code (gambas)

  1. Shell "find " & MUSIC & " -type f -iname *.ogg -o -name *.wma -o -iname *.mp3 > " & MUSIC & "playlist"
 
..then mplayer shuffles the playlist:-

Code (gambas)

  1. Exec ["mplayer", "-shuffle", "-playlist", MUSIC & "playlist"]
Online now: No Back to the top
1 guest and 0 members have just viewed this.