Skip to content

Commit

Permalink
Merge pull request #166 from AgoraIO-Extensions/dev/4.5.0
Browse files Browse the repository at this point in the history
[Plugin 450] add keep.audiosession for IOS
  • Loading branch information
WinterPu authored Dec 9, 2024
2 parents 05807b6 + 3628505 commit edbcc35
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ namespace agora {
_VideoFrameRenderManager = nullptr;
_VideoObserver = nullptr;
#endif

#if PLATFORM_IOS
EnableIOSAudioSession(true);
#endif
}
}

Expand Down Expand Up @@ -197,6 +193,8 @@ namespace agora {
#if PLATFORM_IOS
EnableIOSAudioSession(true);
AgoraUERtcEngine::Get()->setAudioScenario(agora::rtc::AUDIO_SCENARIO_TYPE::AUDIO_SCENARIO_GAME_STREAMING);
int ret00 = AgoraUERtcEngine::Get()->setParameters("{\"che.audio.keep.audiosession\": true}");
UE_LOG(LogTemp, Warning, TEXT("Agora RTC Engine Keep Audio Session ret %d"), ret00);
#endif

}
Expand Down Expand Up @@ -358,9 +356,6 @@ namespace agora {
int AgoraUERtcEngine::leaveChannel() {
if (RtcEngine != nullptr) {
int ret = RtcEngine->leaveChannel();
#if PLATFORM_IOS
EnableIOSAudioSession(true);
#endif
return ret;
}
return AGORA_UE_ERR_CODE(ERROR_NULLPTR);
Expand Down

0 comments on commit edbcc35

Please sign in to comment.