×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    5

    Question [Moved] cannot play audio on n9 with QML component SoundEffect or Audio

    I am developing an app with QML on N9. And I wanna play some sound effects and background music. So I use QML components SoundEffect and Audio. It works normally running on simulator, but fails on N9 device. I have add mobility into my pro file as follows:

    Code:
    CONFIG += qdeclarative-boostable mobility
    MOBILITY += multimedia
    I got some information from compile output:

    aegis-installing wordmatch (from '')
    Package wordmatch: denied 'GRP::audio' -- origin '' does not allow it
    Package wordmatch: denied 'GRP::audio' for '/opt/WordMatch/bin/WordMatch' -- origin '' does not allow it
    Package wordmatch: denied 'GRP::audio' for 'applauncherd-launcher::/usr/bin/applauncherd.bin' -- origin '' does not allow it


    But i can't figure it out.
    Did anybody come up against this problem? Plz help me, Thanks~

    Ps: The source of SoundEffect & Audio is from local audio files, like mp3.

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: [Moved] cannot play audio on n9 with QML component SoundEffect or Audio

    Hi,

    Have you added the required tokens to manifest.aegis file that is in the qtc_packaging/debian folder?

    Please check this link for the tokens that have to be present depending on the components used.

    http://www.developer.nokia.com/Commu...ecurity_Tokens

    QtMobility Multimedia
    GRP:ulse-access
    GRP::video

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    5

    Re: [Moved] cannot play audio on n9 with QML component SoundEffect or Audio

    hi kusumk, thanks. I have added mobility module into my pro file. So qmake can automatically generate a .aegis file with the following content:

    Code:
    <aegis>
    	<request policy="add">
    		<!-- Application uses QtDeclarative module. -->
    
    		<!-- import QtMultimediaKit 1.1 -->
    		<credential name="GRP::audio" />
    		<credential name="GRP::pulse-access" />
    		<credential name="GRP::video" />
    
    		<for path="/opt/WordMatch/bin/WordMatch" />
    		<for path="applauncherd-launcher::/usr/bin/applauncherd.bin" id="" />
    	</request>
    </aegis
    So I think it's not the point of the problem.

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: [Moved] cannot play audio on n9 with QML component SoundEffect or Audio

    Hi,

    I tested the above harmattanapishowcase application,
    soundeffect sample. It works with .wav file.

    When i used an .mp3 that works with the device music player, it does not work with SoundEffect

    some codec error shown in qtcreator as - QSoundEffect(pulseaudio): Error decoding source

    So some of .mp3 are not supported in N9. It seems to work for some though with different mp3 files. See this thread

    Similar problem is observed and a workaround is provided here.

Similar Threads

  1. How to play audio to uplink with VoIP Audio Services
    By paipeng in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2011-12-08, 06:50
  2. Changing Audio source - unable to play audio with onStopped method
    By mind_freak in forum [Archived] Qt Quick
    Replies: 3
    Last Post: 2011-06-10, 06:57
  3. Can we play audio/video files during audio recording in Symbian ++?
    By dharam.machra in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2011-05-03, 08:17
  4. Replies: 5
    Last Post: 2010-06-04, 10:28
  5. [moved] play audio file
    By temp_username in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2009-01-16, 11:12

Posting Permissions

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