AgoraIO / Basic-Video-Broadcasting

Sample app to join/leave a channel, set the role as a host/audience, mute/unmute, switch between front/rear cameras, and set the video parameters.
MIT License
269 stars 287 forks source link

iOS - record audio but BGM wont play correctly #143

Open norman93sun opened 2 years ago

norman93sun commented 2 years ago

There is a project: using AgoraRtcKit for video call, and AudioKit for recording audio after exit room.

Step:

  1. Join channel as a broadcaster, and set agoraKit.setAudioProfile(.default, scenario: .education) If set scenario with gameStreaming this issue wont happen
  2. Leave channel and go to record.

Issue: When it's recording, there's a BGM palying with no sound. It's working normally if go to recording directly without start a video call. And it's working if we set scenario with gameStreaming.

So far we found this happened on a few of devices: iPadAir4 , iPadPro12Inch4 There is a demo base on OpenLive-iOS I'd appreciate it if someone could help me!