Hi
I use audio.getSessionProperty(audio.OtherAudioIsPlaying) to get info if user is listening to some other audio, but on iOS 10 it stopped working when building with Corona 3077.
Could you share any details on this?
Thanks
Krystian
Hi
I use audio.getSessionProperty(audio.OtherAudioIsPlaying) to get info if user is listening to some other audio, but on iOS 10 it stopped working when building with Corona 3077.
Could you share any details on this?
Thanks
Krystian
Hi Krystian,
Both of those are “hidden” and unsupported audio APIs, so of course we can’t guarantee they’ll work reliably across platforms. Did this stop working in just iOS 10, or in a specific version of Corona (unrelated to the iOS version)?
Best regards,
Brent
Hi Brent
It changed after I have moved from build 2744 to 3077.
Scott, you are being a bit too intrusive with your ads. I have searched through the boards here and every topic I have found had a mention of one of your plugins.
I may not be as irritated as some other folks here, but if you are not willing to help with your answer, then please STFU!
Your answer would be so much better if you would include a code snippet which can be used to get this info:
AVAudioSession \*audionSession = [AVAudioSession sharedInstance]; if (audionSession.secondaryAudioShouldBeSilencedHint) { // Other audio is playing } else { // No other audio is playing }
Then you could add info about your plugin.
Corona mods: I think forums rules should reflect this.
Let me break the paragraph down.
“Scott, you are being a bit too intrusive with your ads.” I am not trying to do advertising, I am trying to help users. If I were doing ads I would certainly not do them hear. You can look at this from a negative point view and say I am really trying to help people. I was trying to make money I would certainly not be making plugins.
“I have searched through the boards here and every topic I have found had a mention of one of your plugins.” That is very much an exaggeration. When people ask a question that my plugin may be able to help, I point to it. “Every topic” is not accurate there is one other post where I helped users with their problems (see this post https://forums.coronalabs.com/topic/68207-override-or-detect-ios-mute/?p=355358).
“I may not be as irritated as some other folks here, but if you are not willing to help with your answer, then please STFU!” I am not trying to irritate you whether you believe it or not.
“Your answer would be so much better if you would include a code snippet which can be used to get this info:” You did not mention how do I do this with enterprise which you currently don’t have according to your profile
“Then you could add info about your plugin.” Look, brent asked me in the slack if I had a plugin that used supported checking if audio is playing at all. I quickly added this to my more info plugin and told him I do now. He pointed me to the forum thread and I thought it would be nice to post it.
“Corona mods: I think forums rules should reflect this.” I think I would be unfair if could not share work with others. I like to believe that I helping people sorry if you get the idea that I am spamming people.
Good night,
Scott
I can confirm this. As I stated, you’re using unsupported audio APIs, and they have been unsupported for several years (4-5?). Since you’ve been a Corona user for a long time, I’m sure you know this… those APIs were always flagged with a cautionary statement (I don’t even know the location of the page where they’re talked about anymore). Apple changes things, Google changes things, and unsupported APIs will not get fixed along with those changes.
Because of that, I asked Scott if his “More Info” plugin offered this feature. It did not, so he quickly added it, updated the plugin, and posted the note here. Whether you choose to use it is, of course, up to you, but no “ad” or “sales” intention is going on here.
Best regards,
Brent
So I did some digging, and it seems that audio is stopped before I can change the session settings in main.lua.
I have moved the code to willLoadMain [changing session mode to mixed] and isOtherAudioPlaying and secornardyAudioShouldBeSilencedHint began to work fine.
Hi Krystian,
Both of those are “hidden” and unsupported audio APIs, so of course we can’t guarantee they’ll work reliably across platforms. Did this stop working in just iOS 10, or in a specific version of Corona (unrelated to the iOS version)?
Best regards,
Brent
Hi Brent
It changed after I have moved from build 2744 to 3077.
Scott, you are being a bit too intrusive with your ads. I have searched through the boards here and every topic I have found had a mention of one of your plugins.
I may not be as irritated as some other folks here, but if you are not willing to help with your answer, then please STFU!
Your answer would be so much better if you would include a code snippet which can be used to get this info:
AVAudioSession \*audionSession = [AVAudioSession sharedInstance]; if (audionSession.secondaryAudioShouldBeSilencedHint) { // Other audio is playing } else { // No other audio is playing }
Then you could add info about your plugin.
Corona mods: I think forums rules should reflect this.
Let me break the paragraph down.
“Scott, you are being a bit too intrusive with your ads.” I am not trying to do advertising, I am trying to help users. If I were doing ads I would certainly not do them hear. You can look at this from a negative point view and say I am really trying to help people. I was trying to make money I would certainly not be making plugins.
“I have searched through the boards here and every topic I have found had a mention of one of your plugins.” That is very much an exaggeration. When people ask a question that my plugin may be able to help, I point to it. “Every topic” is not accurate there is one other post where I helped users with their problems (see this post https://forums.coronalabs.com/topic/68207-override-or-detect-ios-mute/?p=355358).
“I may not be as irritated as some other folks here, but if you are not willing to help with your answer, then please STFU!” I am not trying to irritate you whether you believe it or not.
“Your answer would be so much better if you would include a code snippet which can be used to get this info:” You did not mention how do I do this with enterprise which you currently don’t have according to your profile
“Then you could add info about your plugin.” Look, brent asked me in the slack if I had a plugin that used supported checking if audio is playing at all. I quickly added this to my more info plugin and told him I do now. He pointed me to the forum thread and I thought it would be nice to post it.
“Corona mods: I think forums rules should reflect this.” I think I would be unfair if could not share work with others. I like to believe that I helping people sorry if you get the idea that I am spamming people.
Good night,
Scott
I can confirm this. As I stated, you’re using unsupported audio APIs, and they have been unsupported for several years (4-5?). Since you’ve been a Corona user for a long time, I’m sure you know this… those APIs were always flagged with a cautionary statement (I don’t even know the location of the page where they’re talked about anymore). Apple changes things, Google changes things, and unsupported APIs will not get fixed along with those changes.
Because of that, I asked Scott if his “More Info” plugin offered this feature. It did not, so he quickly added it, updated the plugin, and posted the note here. Whether you choose to use it is, of course, up to you, but no “ad” or “sales” intention is going on here.
Best regards,
Brent
So I did some digging, and it seems that audio is stopped before I can change the session settings in main.lua.
I have moved the code to willLoadMain [changing session mode to mixed] and isOtherAudioPlaying and secornardyAudioShouldBeSilencedHint began to work fine.