Languages

Menu
Sites
Language
Tizen Media Player Crashes on RD-PQ

Hey guys, 

I want to use the Tizen::Media::Player class to play music in my application. 

I followed the example from the developer website.

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.apireference%2FclassTizen_1_1Media_1_1Player.html

 

In my app, the player crashes at the the Constrcut phase without giving any error.

Can anybody give a hint or something ? Is the example from above wrong ?

 

Thnaks

Responses

6 Replies
Alex Ashirov

Hi,

Have you tried MediaApp example distributed with SDK? It works fine for me.

Stefan

Yes, I have.

This is my code.

__musicPlayer = new Tizen::Media::Player();
        AppLogDebug("Player -------------- 0");

        __musicPlayer->Construct(*this);

        AppLogDebug("Player --------------- 1");

        __musicPlayer->OpenFile(Tizen::App::App::GetInstance()->GetAppDataPath() + "audio/test.mp3", false);

        __musicPlayer->Play();

Alex Ashirov

Strange. I don’t have any problems with the both SDK’s sample and your code. Do you have the same issue with SDK’s sample? What SDK version do you use?

Stefan

I'm using 2.2. That's the awkard part, the Sample works just fine, but in my particular application it fails. 

The interesting thing is, that I tried getting a result from the constrcut phase, but no response is give, because of the crash. 

Any ideas ? 

Alex Ashirov

Actually it’s quite difficult to understand what really happens in this particular case. I have just copied you code snippet into my test project and I have not observed any crashes. I can only suggest you to try the same (copy you player related code into a new, clear project and see what happens).

Stefan

Ok, so the exact same code, works in any other project but this one. 

The project I'm trying to make has a lot of sources. I really don't see the relevance of that.

Could it be that some of the implements I make in my code interfere with IPlayerEventListner ?