Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to use mp3 with qt from resource.qrc in an application for symbian device?
Forum Updated to NodeBB v4.3 + New Features

How to use mp3 with qt from resource.qrc in an application for symbian device?

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 4 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    satyasipl
    wrote on last edited by
    #1

    Hello Everyone,
    I'm new in QT development for mobile using c++. I'v some problems regarding playing audio. I'm using one mp3 to load with my application. This should be present within the sis file.
    @
    player = new QMediaPlayer;
    player->setMedia(QUrl::fromLocalFile(":/song/GN.mp3")); //song is in my resource.qrc
    player->setVolume(100);
    player->play();
    @
    If I will use absolute path then my audio file will reside in system and I need it on my phone.

    Anyone there to help?

    Thanx in advance for your support.

    Edit: please use @ tags around code sections; Andre

    Thanx "tucnak" for providing this information.
    Well all these days I was trying to solve that problem, but invain. I want to play GN.mp3 in my application. I want to use it inside the sis file. How can I do it?
    Pls help me.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      Hi, ~satya@sipl!

      Welcome to Qt Developer Network.

      There is a bug in Qt Mobility bugtracker ("QTMOBILITY-904":https://bugreports.qt-project.org/browse/QTMOBILITY-904).

      Sound cannot be played from resources. The best solution will be to copy it to temporary directory.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cyberrob
        wrote on last edited by
        #3

        Is this bug fixed on Qt 5.3? How come it hanging there for such long time...

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          symbian is no supported for Qt5. You need to use Qt4.

          see "supported platforms":http://qt-project.org/wiki/Support-for-Symbian
          for more details.

          You are out of luck if you want to stick with Symbian.

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved