AgoraIO / Video-Call-for-Mobile-Gaming

33 stars 14 forks source link

It misses audio recording with ReplayKit in iOS #14

Closed lincode closed 2 years ago

lincode commented 4 years ago

I couldn't recording audio with ReplayKit in iOS. From I load the agora engine, the output video of ReplayKit start to be mute without any sound.

zhangtao1104 commented 4 years ago

mRtcEngine.SetParameters("{\"che.audio.keep.audiosession\":true}"); mRtcEngine.SetParameters(“{\"che.audio.mixable.option\": true}; You can call this two api before joinChannel and try again.

lincode commented 4 years ago

@zhangtao1104 Thanks for your suggestion. I tried. It didn't work as before.

anovoselskyi commented 4 years ago

Also doesn't work. I'm trying to record screen during the video call, but the audio doesn't record

zhangtao1104 commented 4 years ago

You want to make a real time video communication, at the same time you want to capture the screen and record the audio of the speaker by replaykit. But the result is that you can not record the audio of the speaker right? @anovoselskyi

anovoselskyi commented 4 years ago

@zhangtao1104 yes, it's correct. I would like to have a record live video call with audio from the speaker and microphone using ReplayKit.

zhangtao1104 commented 4 years ago

You can try to call api named SetAudioProfile(AUDIO_PROFILE_TYPE.AUDIO_PROFILE_DEFAULT, AUDIO_SCENARIO_TYPE.AUDIO_SCENARIO_GAME_STREAMING) before you call joinChannel.

Please have a try.

anovoselskyi commented 4 years ago

@zhangtao1104 it's fixing my issue. Thank you so much 🎉