Letting player use their own music player

Isn’t there a way to let the player use their own music player during an App?

i bet this has been asked a 1,000 times but I somehow I still can’t find it.

I could have sworn there was an audio channel I could reserve to let iOS and Android play music through that channel while my app was running? (customers want this)

pls advise   :ph34r:

Have you tried this ?

if (audio.supportsSessionProperty) then -- set the audio mix mode to allow sounds from the app to mix with other sounds from the device audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode) end

Thank you. For whatever reason, this is the number 1 thing my customers after in-game help.

One question, is my itunes music supposed to be controlled with the Master Volume ?

so audio.getVolume() with no specific channel, is that supposed to control the external audio as well? Does that mean ringtones and mobile alerts are supposed to be controlled within the 32 channels? Or are those always an external channel we don’t touch?

Corona does not allow you to control master volume of the phone. If the user turn down the master volume down your app and the background noise go down. If you turn down ajust volume for a channel that audio goes down and background noise is not changed. If you are using the iTunes plugin made by Corona that only controls volume for the songs being played via iTunes( well technically is playing locally bought songs in the music app).

I build this plugin to allow you get the current master volume and set the current master volume

https://marketplace.coronalabs.com/plugin/volume-control

Absolutely no thanks. Why would I ever want to pay you 5$ when I can just go here https://docs.coronalabs.com/api/library/audio/index.html?

This is the problem with people trying to micro-transaction other developers and this whole market place. People are less prone to share information and actual code. 

That is a negative view point of the marketplace, You said “Master Volume” so I amused you are referring to global volume control. I tried to give you the free answer first. Marketplace developer are not rolling around in money. I am not trying to advertise, I am trying to answer a question.

You are 100% correct. It is absolutely a negative viewpoint of the market place. The term that comes to mind for me is attempting to eat one’s own. b2b bonanza on the most micro-micro transaction level. For me the whole idea of a developer-to-developer marketplace was a disaster when it comes to fostering developers coming up.

I think the idea that everything should be free is wrong. I don’t think the point of marketplace is for the user to have to buy everything, just the things you needs. The most expensive plugin is 20$, which I don’t believe is that much. (Scott that is 20$ a year) build that app and move on, if you are still working on it than you should be making money already.

Learning is a cost so, I am not sure what you mean by Free. (?)

I finished the answer to this sound thing and it did cost me, it cost me time and research. However, now I am not dependent on a 3rd Party that I have no interest to pay yearly. 

It was just a few commands and a json write to documents directory(storing sound settings) so the costs were cheap. :D

I did a third party Sprite thing called SpriteLoq when I first came to Corona back in 2011. They had like a 2 year run. Stopped supporting their software. Corona updated the sprite package, they of course did not. And then my code as a consequence, was busted. It wasn’t officially sanctioned because there wasn’t a corona ‘marketplace’.  I still to this day have to rewrite that entire piece of software to even update it.

I since have learned the ins and outs of Sprites and no longer use 3rd party purchases.  

I am wary and I see a lot less sharing of information going on. That is what makes good healthy coding communities. Not nickle and dime-ing people off of subscriptions.

Again, this is all just my opinion based on 30 years of game experience so take it for whatever you want.

Does this code still works?

I’ve recently upgraded to 3077 and itunes music stops playing when I start my game.

My previous version was from year 2014 so quite a while ago. 

I am using 2017.3068. It has never worked for me in the way you mention. 

Start your game then go over and start your music.

or

Start your music, start your game and then go back and un-pause your music.

And it works. And I promise you many games I use on my iphone I have to go through the same process.

Adrian

Have you tried this ?

if (audio.supportsSessionProperty) then -- set the audio mix mode to allow sounds from the app to mix with other sounds from the device audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode) end

Thank you. For whatever reason, this is the number 1 thing my customers after in-game help.

One question, is my itunes music supposed to be controlled with the Master Volume ?

so audio.getVolume() with no specific channel, is that supposed to control the external audio as well? Does that mean ringtones and mobile alerts are supposed to be controlled within the 32 channels? Or are those always an external channel we don’t touch?

Corona does not allow you to control master volume of the phone. If the user turn down the master volume down your app and the background noise go down. If you turn down ajust volume for a channel that audio goes down and background noise is not changed. If you are using the iTunes plugin made by Corona that only controls volume for the songs being played via iTunes( well technically is playing locally bought songs in the music app).

I build this plugin to allow you get the current master volume and set the current master volume

https://marketplace.coronalabs.com/plugin/volume-control

Absolutely no thanks. Why would I ever want to pay you 5$ when I can just go here https://docs.coronalabs.com/api/library/audio/index.html?

This is the problem with people trying to micro-transaction other developers and this whole market place. People are less prone to share information and actual code. 

That is a negative view point of the marketplace, You said “Master Volume” so I amused you are referring to global volume control. I tried to give you the free answer first. Marketplace developer are not rolling around in money. I am not trying to advertise, I am trying to answer a question.

You are 100% correct. It is absolutely a negative viewpoint of the market place. The term that comes to mind for me is attempting to eat one’s own. b2b bonanza on the most micro-micro transaction level. For me the whole idea of a developer-to-developer marketplace was a disaster when it comes to fostering developers coming up.

I think the idea that everything should be free is wrong. I don’t think the point of marketplace is for the user to have to buy everything, just the things you needs. The most expensive plugin is 20$, which I don’t believe is that much. (Scott that is 20$ a year) build that app and move on, if you are still working on it than you should be making money already.