Page 1 of 2

Linux [techdemo] LiLi_M Little Linux MediaPlayer (1.2)

Posted: Thu Feb 21, 2008 12:08 am
by walker
this is the first attempt to create an application with a non rectangular window (aka skinned window).... and what else is better to demonstrate as a MediaPlayer.... :lol: so LiLi_M is born...

anyway.. here's a screenshot of the player
Image
and with another skin (only color changed)
Image
the skin for non composited screens
Image
(as you can see.. all are variations of the same image....)

the buttons are working except the open (green folder on the right) and the minimize button (last button on the right)

the buttons from left to right:
- first song in list
- previous song in list
- Play ---> if pressed, you can select one or more music tracks (don't try to load a movie... the prog will crash due to a bug in Playmovie())
- Pause / resume the current song
- next song in list
- last song in list
- the X will close the player (imediately)

The current song (filename) is displayed at the top (cycling)

If you click somewhere on the player window and NOT on any button, you can toggle the Window decoration i.e to move the Player window... (until i found out, how to move the window without the titlebar :roll: )

For mp3 playback an appropriate codec must be installed...

I'd created 4 skins; one of the (skin4.png) for use if no compositing manager is avalable...

to use another skin, simply copy one of the 4 skins and rename it to skin.png... of course you can use your own images as well.. 8)
The skin.png must be in the same directory as the player itself!


Download (player with 9 skins and 16 usable skin-images):
http://home.arcor.de/x-linux/pure/lili_m/lili__m.tar.gz

Feedback and suggestions are welcome!

Updates:

25.02.2008:

- using now an ini file (description see the inifile in the package) to place the controls
- the open button now shows a popup menu with 4 entrys (though onle the entry files is working at present)
- the play-button now starts playback... nothing more
later on at this day
- added a preferences button
- added icons to the popup menu
- changed the exit code to prevent a gtk error
- changed the ini file
- windows position is now saved each time you exit LiLi M

28.02.2008

- rearranged the 2nd buttonrow (from left to right: open/playlists/preferences/exit)
- now the first 3 entrys in the open-menu are working (File(s)/Folder/Playlist)
- added support for m3u Playlists
- added a playlist-editor where you can search for files, create/edit/delete Playlists (looks a little ugly for now... but it works)
- fixed some issues with the display of the playerwindow
- fixed a minor bug in the inifile (typo) which prevents correct placement of the window
- added some notifications so from this version on libnotify must be installed
- you can start LiLi M now with a playlist as parameter (full path)

btw. reading a Folder (and subfolders) with more than 2.300 files (songs) lasts less than 30ms :shock:
THAT is fast :cool: and only done with the PB commands :!:
I guess this will depend on the hardware... but I think on a recent PC you'll not have to wait...

03.03.2008

- Preferences added (with some options - most of them have immediate effect; the cycle times are not parsed at present so leave the default value )
- MP3 Tags are read and displayed if possible
- a new skin added and the appropriate ini file for it :wink:
- you can start lili_m now with an ini-file as parameter too (so 2 parameters are supported now )
- some bugfixes..
- Playlists now can be edited even if a playlist is running
- you can place the controls horizontal or vertical
- added some parameters to the inifile
(cd playback is still missing and will be implemented the next version as well as unicode support)

14.04.2008
- added a context-menu (right mouse button) at the systray-icon
- added Drag'nDrop in the Playlist-Editor
- added the ability to start the exe with music-files as argument from the console
- some bug fixes
- added a little help (console only) try LiLi_M -h or LiLi_M /?
- added a Readme to the archive

04.04.2009 New Version 1.2

- fixed some minor bugs
- fixed one major bug (some mp3 caused a crash)
- added a few new skins
- added new options to the ini (see ini files and comments)
- skins are selectable from the preferences now
- someting else changed ... but i didn't remember ... :roll:

(still no Helpfile and no real cd support... though you can play audio-cd's)

Posted: Sun Feb 24, 2008 7:47 pm
by frederic
Nice app :)

maybe you could use a preference file to move buttons where we want
Image
Image

Posted: Mon Feb 25, 2008 11:53 am
by walker
Updated the package so please download again
changes:
- uses now a ini-file called lili.ini
- the open button noe works (though onle the first entry of the menu is working)
- the play-button now does only one thing..,, starting the playback :wink:

more to come....

Posted: Mon Feb 25, 2008 8:37 pm
by frederic
Hello,

Bugs :
When i close lili with the cross button in top right corner, the dialog close but not the application

Features :
add the skin filename to the ini or make "theme" files (ini + png) in one directory or one packed file

Posted: Mon Feb 25, 2008 8:57 pm
by walker
frederic wrote:Hello,

Features :
add the skin filename to the ini or make "theme" files (ini + png) in one directory or one packed file
png in the ini-file is already implemented (please download again; see comments in the file) and some bugfix.

The window position is now saved each time you exit LiLi

Added a preferences button (no function t present)

I'd changed the exit code too... so please tell me if this strange behavior is still there....

I'll add an optional parameter for LiLi at startup so you can start LiLi with any ini-file

Posted: Tue Feb 26, 2008 8:28 pm
by frederic
Features :
if I open a file, I would like the song plays automatically, maybe a param in .ini

drag n drop over the window

remember the last folder choosed

Bugs :
When i double click on the bitmap part of the window, the app grows and I can't any more move the window.

Exit bug : corrected

Posted: Wed Feb 27, 2008 9:26 am
by walker
such things (automatic play etc.) are planned for the preferences...
DND.. is on the TODO list

but... what the heck is that for a behavior of the window :?: :?:
There is no code to maximize the window.. even no maximize button is present... so HOW can the window be maximized by the user :shock:
(tried it but it behaves like it should....)

Please tell me, which Distro you're using.......

Posted: Wed Feb 27, 2008 7:19 pm
by frederic
In facts the app doesn't really grows but disappears from the main bar after a double click, some times the app goes in the right top corner and i can't move the window.

it's hard to explain in english, sorry

watch this : http://fredme.free.fr/lili/out.ogg.3


ubuntu 7.04

Posted: Wed Feb 27, 2008 9:08 pm
by walker
got it :lol: thanks for the video (as always: pictures are saying more than 1000 words :wink:)

but unfortunately I can't reproduce this (using Linux Mint based on Ubuntu 7.10)
But I guess it could be your theme.. (tried the theme you're using... and there are some strange color effects.... but the player is always visible in the taskbar...)

If you don't mind, please try another theme (or 2) and tell me the result..... if this doesn't help, it's the Ubuntu 7.04 which causes the difference.....

Posted: Wed Feb 27, 2008 10:24 pm
by frederic
with another theme the problem is the same

with 3d effects (compiz) all is alright

Posted: Wed Feb 27, 2008 11:01 pm
by walker
I guess i found the problem... (and I found a way to reproduce this starnge behavior)

can you please download this exe (it's only the executable) and try?

http://home.arcor.de/x-linux/pure/lili_m/LiLi_M

thanks in advance

Posted: Thu Feb 28, 2008 8:27 am
by bembulak
:shock:
Good job!

Could you tell me, how you do the skinning? I always had problems, wenn placing buttons on images, having 2 Gadgets overlayed in z-order.

You use lots of GTK-Api, don't you?

Posted: Thu Feb 28, 2008 10:21 am
by walker
:D thanks...

you're right.. its A LOT of API..... nearly the whole program... (I couldn't get it to work with a PB window... though it's a usual gtk window too... maybe another day....)

check your PM .. sent you an example code... 8)

Posted: Thu Feb 28, 2008 3:21 pm
by walker
Update 28.02.2008
for details and download see first Post

Posted: Mon Mar 03, 2008 9:47 pm
by walker
Update 03.03.2008
See first Post...
beside other things I'd added a new skin and ini-file to the archive
simply start the player with the inifile as parameter (>lili_m pb_skin.ini)

Image