11-13-2009 09:57 AM
I have a fitness app which uses the Player object to generate some short sound effects. Users of my app also listen to music using the built in media player on the device. The problem is that when my app generates the sound effects, it cuts out the music. It does not appear that the build in media player has any sort of control api or am I missing something?
I would hate to have to recreate the media player functionality in my app just so that I can pause it temporarily. Is this the only way around this? I would be happy with a "pause" and "resume" or with both players simultaneously playing. Can anyone give some guidance.
BTW: This is on OS4.5
11-13-2009 10:09 AM
it seems that players cannot run simultaneously. a workaround was to start them both in the same thread at the same time. just read about this stuff, though.
12-09-2009 10:35 AM
I'm bumping this thread to see if there are any more suggestions out there. This seems to be an issue with CDMA devices according to this article:
The resolution states: "You can program your application to register a PlayerListener to monitor playback. When another Player supersedes playback, a Stop event will be received."
I'm not fully understanding this. In my case the media player (or other third party music plalyer) has already been started before the user launches my app. The issue is that when my app plays a sound, it pauses any other player running. I have no way to start those players up programmatically again. This is really casuing the users of my app a lot of grief as they have to manually restart their music.
Again, any help is appreciated.