Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

How to create a MAFW plugin for Harmattan in Qt?

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


scifi1947 at gmail

Jul 28, 2011, 11:39 AM

Post #1 of 3 (334 views)
Permalink
How to create a MAFW plugin for Harmattan in Qt?

I am trying to create a plugin for Harmattan audio player that can be used
to skip current song by shaking the phone. I got it to work by creating a
daemon and monitoring dbus signals for mafw renderer. But I am looking for a
more cleaner approach if it exists.

I have looked at the very detailed Media Application Framework wiki on
maemo.org [1] and the source code on maemo garage but I am still (more)
confused.

These are the basic questions I have.

- How can the audio player (or MAFW) recognize that a plugin exists and it
has to be loaded when the player is launched?

- Is a Renderer type of plugin/extension suitable for my use case? Can an
extension just add on to what the default Renderer is doing (like modify
only play/pause/next methods)?

- Is it possible to do any of these things using qmafw (Qt) without touching
GLib?

Can anyone shed some light?

~Sudheer

[1]
http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Multimedia_Components/Media_Application_Framework_(MAFW)


pedro.larroy at nokia

Jul 28, 2011, 11:57 AM

Post #2 of 3 (333 views)
Permalink
RE: How to create a MAFW plugin for Harmattan in Qt? [In reply to]

So it skips song when you wal around?


:)

Pedro.
________________________________
From: maemo-developers-bounces [at] maemo [maemo-developers-bounces [at] maemo] on behalf of ext Sudheer K. [scifi1947 [at] gmail]
Sent: Thursday, July 28, 2011 8:39 PM
To: maemo-developers [at] maemo
Subject: How to create a MAFW plugin for Harmattan in Qt?

I am trying to create a plugin for Harmattan audio player that can be used to skip current song by shaking the phone. I got it to work by creating a daemon and monitoring dbus signals for mafw renderer. But I am looking for a more cleaner approach if it exists.

I have looked at the very detailed Media Application Framework wiki on maemo.org<http://maemo.org> [1] and the source code on maemo garage but I am still (more) confused.

These are the basic questions I have.

- How can the audio player (or MAFW) recognize that a plugin exists and it has to be loaded when the player is launched?

- Is a Renderer type of plugin/extension suitable for my use case? Can an extension just add on to what the default Renderer is doing (like modify only play/pause/next methods)?

- Is it possible to do any of these things using qmafw (Qt) without touching GLib?

Can anyone shed some light?

~Sudheer

[1] http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Multimedia_Components/Media_Application_Framework_(MAFW)


scifi1947 at gmail

Jul 28, 2011, 1:20 PM

Post #3 of 3 (344 views)
Permalink
Re: How to create a MAFW plugin for Harmattan in Qt? [In reply to]

Unless you can walk sideways rapidly, No :)

Jokes apart, it is only triggered when you shake the phone sideways. Check
this clip -> http://www.youtube.com/watch?v=lwfXHgGAktc

And in harmattan accelerometer is paused/disabled when the display times
out. I also use a threshold to avoid accidental triggers, which can be
configured. So this should prevent accidental triggers in most common
scenarios.

~Sudheer

On Thu, Jul 28, 2011 at 11:57 AM, <pedro.larroy [at] nokia> wrote:

> So it skips song when you wal around?
>
>
> :)
>
> Pedro.
> ------------------------------
> *From:* maemo-developers-bounces [at] maemo [
> maemo-developers-bounces [at] maemo] on behalf of ext Sudheer K. [
> scifi1947 [at] gmail]
> *Sent:* Thursday, July 28, 2011 8:39 PM
> *To:* maemo-developers [at] maemo
> *Subject:* How to create a MAFW plugin for Harmattan in Qt?
>
> I am trying to create a plugin for Harmattan audio player that can be
> used to skip current song by shaking the phone. I got it to work by creating
> a daemon and monitoring dbus signals for mafw renderer. But I am looking for
> a more cleaner approach if it exists.
>
> I have looked at the very detailed Media Application Framework wiki on
> maemo.org [1] and the source code on maemo garage but I am still (more)
> confused.
>
> These are the basic questions I have.
>
> - How can the audio player (or MAFW) recognize that a plugin exists and
> it has to be loaded when the player is launched?
>
> - Is a Renderer type of plugin/extension suitable for my use case? Can an
> extension just add on to what the default Renderer is doing (like modify
> only play/pause/next methods)?
>
> - Is it possible to do any of these things using qmafw (Qt) without
> touching GLib?
>
> Can anyone shed some light?
>
> ~Sudheer
>
> [1]
> http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Multimedia_Components/Media_Application_Framework_(MAFW)
>

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.