Recording disables iPhone hardware button control

Hello :slight_smile:

obj.m\_tuner = media.newRecording() obj.m\_tuner:startTuner() obj.m\_tuner:startRecording()

When I startTuner and startRecording hardware buttons for controlling volume on iPhone stop working.
Is it intended behavior or is it just bug?

When I run native recording app for iPhone this is not issue - I still can use volume controls.

Thanks for any answer :slight_smile: [import]uid: 41153 topic_id: 19162 reply_id: 319162[/import]

I don’t think we do anything special and just rely on standard OS behavior for the buttons. (What Apple/iOS let’s you do with the volume buttons is very limited.) So I guess this is intended behavior.

I would kind of expect if you are simultaneously recording and playing back audio, the buttons would continue to affect the playback volume.
[import]uid: 7563 topic_id: 19162 reply_id: 73923[/import]

Actually, during investigation of problem I mentioned, it turned out that playing sound while tuner and recording on is impossible - this become even more issue than above. Playing sound while tuner is on gives no playback and turning on tuner while playing sound freezes an app for a second.

And regarding my question from above - what i meant is that native behavior of this buttons doesn’t work - so I don’t get OSD with iPhone’s volume control while recording is on. [import]uid: 41153 topic_id: 19162 reply_id: 73925[/import]

Corona disables playback when recording by default on iOS for performance reasons. (The exception is the iOS 5-only workaround for a Apple bug if you look at the newest SimpleAudioRecorder example.)

If you need simultaneous recording, you have to use the (advanced) AudioSession APIs (which our iOS 5 workaround is using).
[import]uid: 7563 topic_id: 19162 reply_id: 73927[/import]