×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Question Phonon and Silent Profile

    Is there a way to play audio files using Phonon while the device is in Silent profile? I'm using the default 4.5 Qt.

    Thanks

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Phonon and Silent Profile

    I think it violates the purpose of having Silent profile.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Re: Phonon and Silent Profile

    Quote Originally Posted by divanov View Post
    I think it violates the purpose of having Silent profile.
    Well the media player works fine in silent profile. Also the alarm clock does. I think it should be possible.

  4. #4
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Re: Phonon and Silent Profile

    Does anyone know a solution for this? It should be possible, no?

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Re: Phonon and Silent Profile

    OK, I found a hack in this page involving editing xpolicy.conf.

    It works, but it's a rather dirty hack. There must be a better way to do this.

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Phonon and Silent Profile

    Quote Originally Posted by Sasler View Post
    OK, I found a hack in this page involving editing xpolicy.conf.

    It works, but it's a rather dirty hack. There must be a better way to do this.
    You should use libplayback for that as proposed by Stefan.

  7. #7
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Re: Phonon and Silent Profile

    Quote Originally Posted by divanov View Post
    You should use libplayback for that as proposed by Stefan.
    I have no idea how I can do that? Are there some examples of using it in Qt?

  8. #8
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Phonon and Silent Profile

    No, there is no example using Qt.

  9. #9
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Phonon and Silent Profile

    Hi,
    Phonon generally can be classified as broken at best.

    I would just use the S60 Sound Mixer example 2.1. I did that, and now have lower latency and a generally better user experience...
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  10. #10
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Phonon and Silent Profile

    Do you believe S60 example will work on Maemo?

  11. #11
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Phonon and Silent Profile

    Hi,
    oops - my bad. But there must also be a native Maemo example!
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  12. #12
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Phonon and Silent Profile

    Phonon is abstraction layer to hide platform specific implementation from Qt applications. On Maemo Phonon falls back to Gstreamer. There are Qt examples using Phonon and Gtk examples using Gstreamer. One can use Gstreamer directly from Qt application, however, it's not going to solve any problem as there is policy in effect. In order to override the policy one needs to use libplayback to tell daemon that your application is media player and it requires playback resources. On the other side at the moment only libplayback-1-dev is available, no examples and no online documentation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×