Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Undocumented External Audio Fix Not Working on iPhone but is on iPad and iPod and Android Devices
Started by isaiahkronstad83 Dec 18 2019 06:32 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

isaiahkronstad83

[GLOBAL: userInfoPane.html]
isaiahkronstad83
  • Observer

  • 7 posts
  • Corona SDK

Hello,
 
I’ve been using this undocumented API to allow audio from external apps to continue playing when my Corona apps start.
 
if audio.supportsSessionProperty then
   audio.setSessionProperty( audio.MixMode, audio.AmbientMixMode )
end
 
As already mentioned, this API is undocumented.  It seems to be working on Android devices and all iOS devices (iPad and iPod) but NOT iPhone.
 
It is important to me that my users can continue to enjoy their own choice of music while they play my game on iPhone since it's so widely used.
 
As this is an unfinished and an undocumented, yet a crucial feature for Corona, I am looking to hire someone to implement this feature to Corona core.  Pls let me know if you are interested.  Thank you!
 
 
Isaiah


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,687 posts
  • Enterprise

Unfortunately this is also an unsupported feature.

 

Rob



[TOPIC: post.html]
#3

carter330

[GLOBAL: userInfoPane.html]
carter330
  • Observer

  • 5 posts
  • Corona SDK

Hello Isaiah,
 
Greetings!!
 
I'd Glad to assist you.
PM Sent, Please Check.
 
Very Best Regards
Carter W


[TOPIC: post.html]
#4

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,254 posts
  • Corona SDK

Just a heads up for other developers encountering this issue. The code that Isaiah had posted started working with iPhone as well once it was moved to the start of main.lua. It was originally placed in a sfx.lua module, where it worked for Android devices, as well as iPods/iPads, but not iPhone.

 

If anyone has any ideas on why this is the case, I'm sure others would be interested in the why as well.




[topic_controls]
[/topic_controls]