Hi!
I'd post this thread in embedded section,
but i consider this as a newbie question xD
so i'm sorry if this is the wrong section.

Okay, as the title says: In my application I'm trying to use QMediaPlayer to play music in my app, for Harmattan target.
The sound files are included via deploymentfolders.

From PC, it is already working: (in Qt Simulator)
Qt Code:
  1. playlist->addMedia(QUrl::fromLocalFile("/files/sound_1.mp3"))
To copy to clipboard, switch view to plain text mode 

However, it's not working when installed in the device.
I've been going back and forth with QA because of this, because I don't have a device to test
and I think Harmattan QEMU and RDA doesnt give me sound output because Angry Birds has no sound.

Things I've tried:
- I noticed that the default working directory when I run the app is not in my application directory, so I've set it with
Qt Code:
  1. QDir::setCurrent("/opt/myapp/")
To copy to clipboard, switch view to plain text mode 
by adding this code, the device can now read my textfiles ( with QFile )
however QUrl still don't seem to work.

-I've tried to write the absolute path of the file with:
Qt Code:
  1. playlist->addMedia(QUrl::fromLocalFile(QDir::current().path() + QString("/files/sound_1.mp3")));
To copy to clipboard, switch view to plain text mode 
and still won't work.

Please help.

Big thanks!