Bug 269605 - Detect currently playing music and set status message to current song
Summary: Detect currently playing music and set status message to current song
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Unmaintained
Component: kded-module (show other bugs)
Version: git-latest
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: 0.4.0
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-28 13:04 UTC by Francesco Nwokeka
Modified: 2012-07-06 12:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Nwokeka 2011-03-28 13:04:08 UTC
Version:           git-latest (using KDE 4.6.1) 
OS:                Linux

Add the possibility to detect currently playing music from the desktop and set the user's peronal message to the song info( "<artist>-<song name>" ).
This feature should be activated by the user via settings + a button on the contact-list to quickly switch settings ( on/off ).

Reproducible: Didn't try
Comment 1 Alin M Elena 2011-03-28 14:15:27 UTC
for amarok... and I suspect for other mpris compatible players you can get the info about the playing track via

qdbus org.mpris.MediaPlayer2.amarok /Player org.freedesktop.MediaPlayer.GetMetadata

that returns a QVariantMap

and the state of the track via the signal
org.mpris.MediaPlayer2.amarok /Player org.freedesktop.MediaPlayer.TrackChange
Comment 2 David Edmundson 2011-03-28 15:14:18 UTC
This is functionality that should NOT be done in the contact list.

The accounts remain online even after you close the contact list, and it's designed to get away from being one monolithic application. 

I'm not sure where the right place is it could be done as an Amarok plugin, or in a daemon like the approver (or the integration daemon?) which are always running when telepathy is.
Comment 3 Martin Klapetek 2011-10-10 14:36:13 UTC
Git commit 4e41d798546cff4163fde3e62e09a7d639b88029 by Martin Klapetek.
Committed on 10/10/2011 at 16:22.
Pushed by mklapetek into branch 'master'.

New stacking system for plugins, code refactor, global presence integration, last used presence saving (system-wide), improvements in mpris-players detection and auto-away system

Reviewed-by: David Edmundson
REVIEW: 102804
FEATURE: 269605

M  +15   -32   autoaway.cpp
M  +2    -6    autoaway.h
M  +0    -14   global-presence.cpp
M  +1    -4    global-presence.h
C  +23   -30   telepathy-kded-module-plugin.cpp [from: autoaway.h - 057% similarity]
A  +62   -0    telepathy-kded-module-plugin.h     [License: LGPL (v2.1+)]
M  +21   -20   telepathy-module.cpp
M  +2    -2    telepathy-module.h
M  +106  -69   telepathy-mpris.cpp
M  +7    -6    telepathy-mpris.h

http://commits.kde.org/telepathy-kded-module/4e41d798546cff4163fde3e62e09a7d639b88029