语言

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

编辑者为: Egor Chebotarev 19 3月, 2014

响应

2 回复
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.