Akademy
(posted by Fred Emmott at 2008-08-17 11:49:24)
Firstly a big thank you to Trolltech^WNokia, and all of the team who organised the event - probably the best one I've been to so far.
As for what I did there:
- Drank lots of Belgian Beer :)
- Learned about new stuff in Qt, KDE, and Linux graphical stuff in general - in particular, Zack Rusin's talk on Gallium3D seems very promising
- Added MPRIS support to YANIHP - so it now support the same D-Bus interface as Amarok, VLC, Xmms2, and others
- Added a tray icon to YANIHP
- Received a free N810 from Nokia...
...which led to:
:D
Surprisingly few changes were needed:
- Added a compile-time option to make it so that left-clicking on the tray icon pops up the context menu, instead of hiding/showing YANIHP - I'll later make this apply to all context menus, where appropriate
- Added a compile-time option to hardcode data and music paths - otherwise YANIHP uses QDesktopServices::storageLocation - which seems to think that /usr/share/mime/data/ is a perfectly suitable location to store non-root user data on the N810...
Here's how to get it running:
- Install taglib (1.5), libqtcore4, libqt4-sql-sqlite, libqt4-phonon on the device, and the corresponding -dev packages in scratchbox
- Also install cmake in scratchbox
- Build YANIHP in scratchbox, as normal, with the following options:
- EMBEDDED_FIXED_DATA_PATH=/home/user/.yanihp - this changes where the database, coverart, and lyrics are stored
- EMBEDDED_FIXED_MUSIC_PATH=/media/mmc2/Music - this just changes the default location, the user's asked if they want to change it
- EMBEDDED_USE_FIXED_PATHS=ON - enables the above two options
- EMBEDDED_LEFT_BUTTON_CONTEXT_MENU=ON - makes it so that left clicking on the tray icon shows the context menu instead of showing/hiding YANIHP
- WITH_Mpris_PLUGIN=OFF - not strictly neccessary, but I doubt you've got use for it
- Copy it across :)
There's a few caveats:
- It's only currently usable with the CleanLooks Qt theme - with small font sizes and so on, not with GTK support.
- Phonon-gstreamer doesn't appear to support manually switching between gstreamer audio sinks - in particular, there's no mp3 codec as such - instead, you need to connect your audio source to "dspmp3sink" instead. Alternatively, you can use another phonon backend.
I'm not uploading packages, as I've got no idea how to make a "good" debian package.
Trackbacks
No trackbacks for this post
Comments
Phonon-gstreamer
Posted at 2008-08-17 19:26:43 GMT +0000 by "Kevin Kofler"
> Phonon-gstreamer doesn't appear to support manually switching between gstreamer audio sinks You can force a sink by setting the PHONON_GST_AUDIOSINK environment variable. And indeed, this is not ideal: we Fedora folks have also noticed this and consider this to be a blocker for defaulting to Phonon-gstreamer, as it means there is no easy way to switch between pulsesink and alsasink. So we're also interested in getting this fixed. IMHO the right solution would be to have Phonon devices be (sink, device) pairs, not just the devices which happen to be supported with that sink, that would match Phonon-xine's (and probably also other backends') notion of an "output device" most closely. I'm not sure it is the right way to represent that dspmp3sink though, that's a bit special as it's apparently both a hardware codec and an output device.











data location
Posted at 2008-08-17 14:44:57 GMT +0000 by "Benjamin Meyer"
I am very curious how it is getting /usr/share/mime/data/ for the location of your data. In Qt on X11 it uses XDG and on embedded it uses your home directory. Sounds like a bug for them.