2

I'm using mergAV to record video on a LiveCode project for iOS. All works fine but when I play an audio mergAVCamSet stops to work and seems it freezes. Is there a way to play audio and have mergAVCamSet continue to work or the two operations collide?

Cue
  • 2,952
  • 3
  • 33
  • 54

1 Answers1

1

you need to set the audio category to play and record try:

mergAVAudioSessionSetCategory "play and record",false,false,false,true

Note the true at the end there toggles whether the audio will come out of the speaker instead of the receiver.

Monte Goulding
  • 2,380
  • 1
  • 21
  • 25
  • Thanks for pointing me in the right direction.For my particular case, I found that the right code should be: `mergAVAudioSessionSetCategory "ambient","true"` – Cue Jun 14 '13 at 09:35