Languages

Menu
Sites
Language
Media Player play in background

Hello.

I have an issue with playing music in background(when user press "back" button from main form).

How to play music in background like it do system native music player?

Thanks

Edited by: Egor Chebotarev on 19 Mar, 2014

Responses

2 Replies
Alex Ashirov

Hi,

Probably, you close your application when user presses Back button. Please check your OnFormBackRequested() method. You can try to press Home button then you application will be moved to background instead of closing.

Alex Dem

Hi,
just FYI: In mediaApp Native example which uses mediaPlayer there is __pPlayer->Pause();  is called inside PlayerForm::OnBackground...
Alexey.