[mythtv] Fwd: Hooking up to TrackChangeEvent in MythMusic?

Jonathan Martens jonathan at snetram.nl
Thu Mar 29 21:43:55 UTC 2012


I have finally found some time to try and start coding on a test case for LastFM scrobbling support and am wondering how to hook a class up to the TrackChangeEvent in MythMusic.

I have taken a look at how MythVisual is implemented and I have made changes analogue. My code compiles and runs, but when listening music I see no evidence of the Scrobbler::customEvent(event *) function being
I somehow need to add it as a listener I to the event I guess, but I am a bit lost on where and how to do that. Is there some documentation to be found on how to do this?

I have attached my changes so far as patches against recent trunk. Any pointers and tips are welcome.

Thanks in advance.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Create-Last.fm-scrobbler-skeleton.patch
URL: <http://www.mythtv.org/pipermail/mythtv-dev/attachments/20120329/6cf1c0bb/attachment.ksh>

More information about the mythtv-dev mailing list