Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User engrnaveed's Avatar
    Join Date
    Mar 2012
    Posts
    18
    Hi..
    I am facing problems with running this code:


    import QtQuick 1.0
    import QtMultimediaKit 1.1

    Text {
    text: "Click Me!";
    font.pointSize: 24;
    width: 150; height: 50;

    Audio {
    id: playMusic
    source: "music.wav"
    }
    MouseArea {
    id: playArea
    anchors.fill: parent
    onPressed: { playMusic.play() }
    }
    }

    The problem is:
    The sound plays in the device..
    When run in the simulator, it says:
    defaultServiceProvider::requestService(): no service found for - "com.nokia.qt.mediaplayer"
    When run in desktop, it says:
    module "QtMultimediaKit" is not installed
    import QtMultimediaKit 1.1
    ^

    Note that I have installed QtMobility and QtMultimediaKit and have included these two lines in the .pro file:
    CONFIG += mobility
    MOBILITY += multimedia

  2. #2
    Nokia Developer Champion chintandave_er's Avatar
    Join Date
    Aug 2008
    Location
    Vadodara, India.
    Posts
    780
    one related article on this forum.

    http://www.developer.nokia.com/Commu...diaplayer-quot

    best thing is to search in google. here you go.
    https://www.google.co.in/search?sour...mediaplayer%22
    Chintan Dave.
    Water Bubble Application for Nokia N9 is now available in Nokia Store.
    World's Greatest Speeches for Windows Phone is now available in WP Marketplace.

Similar Threads

  1. play my own sounds in alerts
    By xarris_ in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-05-16, 12:45
  2. Play two sounds twice in java?
    By diluo in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2006-12-18, 06:38
  3. How to Play Sounds in Nokia 9500 Emulator or Device..?
    By raochoudary in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2006-03-06, 17:16
  4. how to play two sounds at the same time~~
    By hellohifi in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-10-12, 05:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved