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

Java Development

Reply
Developer
speedwagon
Posts: 21
Registered: ‎01-07-2009
My Device: Not Specified
Accepted Solution

Pause the BB Media Application if it's currently playing media?

Is there a way to pause the Media Application from within my app?

 

Currently if the Media Application is playing a file, and I try to play media using my own app's player (via javax.microedition.media.Manager & Player), then my own media will play on top of the Media Application's currently-playing media. Doesn't sound pretty at all.

 

Is it possible to at least detect if the Blackberry Media Application is in the middle of playing some media?

Please use plain text.
Developer
speedwagon
Posts: 21
Registered: ‎01-07-2009
My Device: Not Specified

Re: Pause the BB Media Application if it's currently playing media?

Is there no way to do this? Posted this a while ago and still haven't been able to figure it out.

 

To clarify: playing sound via my app clashes with the music being played by the BlackBerry Media Application (if it is playing something).

I need to find a way to detect if the BB Media App is currently playing and/or pause it.

 

Please use plain text.
Administrator
MSohm
Posts: 14,297
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Pause the BB Media Application if it's currently playing media?

There are no APIs in the BlackBerry API set that allow you to determine the state of or directly pause the Media application.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.