Corona stops background (itunes) music.

Hi all!

My users complain that music they are listening via iTunes stops when my game is started. Is there any method how to let background (iTunes / podcasts ) music continue  after launching the game?

I use audio.playSound and last public release of Corona 2017.3135. 

This post (http://forums.coronalabs.com/topic/40837-allow-external-music/) says this issue was fixed, but problem is still here.

Thanks.

That is an old thread  (However, you rock for looking it up!)

Note: I checked the audio.* API and there is no ‘supportsSessionProperty’ property listed.  So, I don’t think that is a feature any longer.

The good news is, there is already a feature request for this and you can spend 3 votes on it if you really want it:

http://feedback.coronalabs.com/forums/188732-corona-feature-requests-feedback/suggestions/5416670-allow-external-music-audio-to-keep-playing-in-back

PS - This probably went away thanks to some iOS change.

try

audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode)

this will allow Corona to mix audio with existing audio

@sgs,

Where is this documented?

If you have a listing of properties or a document source, please list them or link it (respectively).

*UPDATE*

I dug a bit and fond all of these functions are not documented:

  • countFreeChannels()
  • countReservedChannels()
  • countTotalChannels()
  • countUnreservedFreeChannel()
  • countUnreservedUsedChannels()
  • countUsedChannels()
  • getChannelFromSource()
  • getSessionProperty()
  • getSourceFromChannel()
  • isSourceActive()
  • isSourcePaused()
  • isSourcePlaying()
  • setSessionProperty()

I submitted a request on the audio.* page that it be updated.

PS - This is bizarre.  I feel like some of these were documented at one time.

That is an old thread  (However, you rock for looking it up!)

Note: I checked the audio.* API and there is no ‘supportsSessionProperty’ property listed.  So, I don’t think that is a feature any longer.

The good news is, there is already a feature request for this and you can spend 3 votes on it if you really want it:

http://feedback.coronalabs.com/forums/188732-corona-feature-requests-feedback/suggestions/5416670-allow-external-music-audio-to-keep-playing-in-back

PS - This probably went away thanks to some iOS change.

try

audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode)

this will allow Corona to mix audio with existing audio

@sgs,

Where is this documented?

If you have a listing of properties or a document source, please list them or link it (respectively).

*UPDATE*

I dug a bit and fond all of these functions are not documented:

  • countFreeChannels()
  • countReservedChannels()
  • countTotalChannels()
  • countUnreservedFreeChannel()
  • countUnreservedUsedChannels()
  • countUsedChannels()
  • getChannelFromSource()
  • getSessionProperty()
  • getSourceFromChannel()
  • isSourceActive()
  • isSourcePaused()
  • isSourcePlaying()
  • setSessionProperty()

I submitted a request on the audio.* page that it be updated.

PS - This is bizarre.  I feel like some of these were documented at one time.