Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
Demax
Posts: 3
Registered: ‎04-11-2013
My Device: BB10

How to pause media player

How to pause system media player from my software?

I tried to call mediaplayer_set_state(MEDIA_STATE_PAUSED) from bps\mediaplayer.h but no results

Please use plain text.
Retired
psapra
Posts: 74
Registered: ‎07-22-2008
My Device: BlackBerry Z10

Re: How to pause media player

Are you trying this from a Cascades app or a purely native app?

 

For Cascades take a look at the below sample on github.

 

http://blackberry.github.io/Cascades-Samples/nowplaying.html#description

 

 

Thanks,
Pratik Sapra
Gaming & Apps Consultant
Developer Relations
@pratiksapra
Please use plain text.