Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Video Stopping External Audio
Started by isaiahkronstad83 Apr 25 2019 12:02 AM

1 reply to this topic
external audio
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

isaiahkronstad83

[GLOBAL: userInfoPane.html]
isaiahkronstad83
  • Observer

  • 4 posts
  • Corona SDK

After adding the below code to stop my app from pausing external audio, the Android version is still pausing external audio when a video plays.  Is there a fix for this?  (BTW, this isn't an issue with iOS).

 

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

 

Thanks,

Isaiah

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,788 posts
  • Enterprise

Unfortunately, the audio.setSessionProperty() is part of an undocumented and unsupported feature that an engineer with audio experience put in a long time ago. We have been quite clear that we don't support this and future OS updates might break it. 

 

Sadly there isn't a fix for this. Now that Corona is open source, you're welcome to go look at the code and see if you can address the issue and submit a pull request.

 

Rob




[topic_controls]
[/topic_controls]