Skip to content

Commit 803b381

Browse files
authored
Merge pull request #180 from AgoraIO-Extensions/publish/4.5.1
Publish/4.5.1
2 parents d477ab4 + 4659786 commit 803b381

12 files changed

Lines changed: 10103 additions & 2677 deletions

File tree

Agora-Unreal-SDK-Blueprint-Example/Config/DefaultEngine.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,8 @@ ConnectionType=USBOnly
3939
bUseManualIPAddress=False
4040
ManualIPAddress=
4141

42+
[/Script/Engine.RendererSettings]
43+
r.DefaultFeature.AmbientOcclusion=False
44+
r.DefaultFeature.AmbientOcclusionStaticFraction=False
45+
r.Mobile.AntiAliasing=0
46+
r.AntiAliasingMethod=0
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11

22
[/Script/EngineSettings.GeneralProjectSettings]
33
ProjectID=7F03214342F10C46757B378800C62811
4+
5+
[/Script/UnrealEd.ProjectPackagingSettings]
6+
+MapsToCook=(FilePath="/Game/API-Example/MainLevel")
7+
+MapsToCook=(FilePath="/Game/API-Example/Advance/DeviceManager/DeviceManager")
8+
+MapsToCook=(FilePath="/Game/API-Example/Advance/MediaPlayer/MediaPlayer")
9+
+MapsToCook=(FilePath="/Game/API-Example/Advance/ScreenShare/ScreenShare")
10+
+MapsToCook=(FilePath="/Game/API-Example/Advance/ScreenShareWhileVideoCall/ScreenShareWhileVideoCall")
11+
+MapsToCook=(FilePath="/Game/API-Example/Advance/SetEncryption/EncyptionSample")
12+
+MapsToCook=(FilePath="/Game/API-Example/Basic/JoinChannelAudio/BasicAudioCallScene")
13+
+MapsToCook=(FilePath="/Game/API-Example/Basic/JoinChannelVideo/BasicVideoCallScene")

Agora-Unreal-SDK-CPP-Example/Config/DefaultEngine.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,9 @@ CompressionQualityModifier=0.000000
186186
AutoStreamingThreshold=0.000000
187187
SoundCueCookQualityIndex=-1
188188

189+
[/Script/Engine.RendererSettings]
190+
r.DefaultFeature.AmbientOcclusion=False
191+
r.DefaultFeature.AmbientOcclusionStaticFraction=False
192+
r.Mobile.AntiAliasing=0
193+
r.AntiAliasingMethod=0
194+

Agora-Unreal-SDK-CPP-Example/Config/DefaultGame.ini

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,42 @@ bSkipMovies=False
7474
+DirectoriesToAlwaysStageAsNonUFS=(Path="Movies")
7575
+DirectoriesToAlwaysStageAsNonUFS=(Path="Audio")
7676
+DirectoriesToAlwaysStageAsNonUFS=(Path="Image")
77+
+MapsToCook=(FilePath="/Game/API-Example/Advance/AudioMixing/AudioMixing")
78+
+MapsToCook=(FilePath="/Game/API-Example/Advance/AudioSpectrum/AudioSpectrum")
79+
+MapsToCook=(FilePath="/Game/API-Example/Advance/ChannelMediaReplay/ChannelMediaReplay")
80+
+MapsToCook=(FilePath="/Game/API-Example/Advance/ContentInspect/ContentInspect")
81+
+MapsToCook=(FilePath="/Game/API-Example/Advance/CustomCaptureAudio/CustomCaptureAudio")
82+
+MapsToCook=(FilePath="/Game/API-Example/Advance/CustomCaptureVideo/CustomCaptureVideo")
83+
+MapsToCook=(FilePath="/Game/API-Example/Advance/CustomRenderAudio/CustomRenderAudio")
84+
+MapsToCook=(FilePath="/Game/API-Example/Advance/DeviceManager/DeviceManager")
85+
+MapsToCook=(FilePath="/Game/API-Example/Advance/DualCamera/DualCamera")
86+
+MapsToCook=(FilePath="/Game/API-Example/Advance/JoinChannelVideoToken/JoinChannelWithToken")
87+
+MapsToCook=(FilePath="/Game/API-Example/Advance/JoinChannelWithUserAccount/JoinChannelWithUserAccount")
88+
+MapsToCook=(FilePath="/Game/API-Example/Advance/JoinMultipleChannels/JoinMultipleChannels")
89+
+MapsToCook=(FilePath="/Game/API-Example/Advance/MediaPlayer/Mediaplayer")
90+
+MapsToCook=(FilePath="/Game/API-Example/Advance/MediaPlayerWithCustomDataProvide/MediaPlayerWithCustomDataProvide")
91+
+MapsToCook=(FilePath="/Game/API-Example/Advance/MediaRecorder/MediaRecorder")
92+
+MapsToCook=(FilePath="/Game/API-Example/Advance/Metadata/Metadata")
93+
+MapsToCook=(FilePath="/Game/API-Example/Advance/MusicPlayer/MusicPlayer")
94+
+MapsToCook=(FilePath="/Game/API-Example/Advance/ProcessAudioRawData/ProcessAudioRawData")
95+
+MapsToCook=(FilePath="/Game/API-Example/Advance/ProcessVideoRawData/ProcessVideoRawData")
96+
+MapsToCook=(FilePath="/Game/API-Example/Advance/ScreenShare/ScreenShare")
97+
+MapsToCook=(FilePath="/Game/API-Example/Advance/ScreenShareWhileVideoCall/ScreenShareWhileVideoCall")
98+
+MapsToCook=(FilePath="/Game/API-Example/Advance/SetBeautyEffectOptions/SetBeautyEffectOptions")
99+
+MapsToCook=(FilePath="/Game/API-Example/Advance/SetEncryption/SetEncryptionScene")
100+
+MapsToCook=(FilePath="/Game/API-Example/Advance/SpatialAudio/SpatialAudio")
101+
+MapsToCook=(FilePath="/Game/API-Example/Advance/SpatialAudioWithMediaPlayer/SpatialAudioWithMediaPlayer")
102+
+MapsToCook=(FilePath="/Game/API-Example/Advance/StartDirectCdnStreaming/StartDirectCdnStreaming")
103+
+MapsToCook=(FilePath="/Game/API-Example/Advance/StartLocalVideoTranscoder/StartLocalVideoTranscoder")
104+
+MapsToCook=(FilePath="/Game/API-Example/Advance/StartRhythmPlayer/StartRhythmPlayer")
105+
+MapsToCook=(FilePath="/Game/API-Example/Advance/StartRtmpStreamWithTranscoding/StartRtmpStreamWithTranscoding")
106+
+MapsToCook=(FilePath="/Game/API-Example/Advance/StreamMessage/StreamMessageScene")
107+
+MapsToCook=(FilePath="/Game/API-Example/Advance/TakeSnapshot/TakeSnapshot")
108+
+MapsToCook=(FilePath="/Game/API-Example/Advance/VirtualBackground/VirtualBackground")
109+
+MapsToCook=(FilePath="/Game/API-Example/Advance/VoiceChanger/VoiceChanger")
110+
+MapsToCook=(FilePath="/Game/API-Example/Advance/WriteBackVideoRawData/WriteBackVideoRawData")
111+
+MapsToCook=(FilePath="/Game/API-Example/Basic/JoinChannelAudio/BasicAudioCallScene")
112+
+MapsToCook=(FilePath="/Game/API-Example/Basic/JoinChannelVideo/BasicVideoCallScene")
77113

78114
[/Script/Engine.AssetManagerSettings]
79115
-PrimaryAssetTypesToScan=(PrimaryAssetType="Map",AssetBaseClass=/Script/Engine.World,bHasBlueprintClasses=False,bIsEditorOnly=True,Directories=((Path="/Game/Maps")),SpecificAssets=,Rules=(Priority=-1,ChunkId=-1,bApplyRecursively=True,CookRule=Unknown))

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/MediaPlayerWithCustomDataProvide/MediaPlayerWithCustomDataWidget.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ void UMediaPlayerWithCustomDataWidget::OnBtnBackToHomeClicked()
111111

112112
void UMediaPlayerWithCustomDataWidget::OnBtnOpenClicked()
113113
{
114+
// This is to prevent a crash when the open button is clicked while playback is ongoing.
115+
// This is necessary because IMediaPlayerCustomDataProvider cannot be discarded while in use.
116+
MediaPlayer->stop();
117+
114118
UserIMediaPlayerCustomDataProvider = MakeShared<FUserIMediaPlayerCustomDataProvider>();
115119
FString Path = FPaths::ProjectContentDir() / TEXT("Movies/MPK.mp4");
116120

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Basic/JoinChannelAudio/AgoraAudioWidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void UAgoraAudioWidget::InitUI()
2626

2727
#if PLATFORM_IOS
2828

29-
VB_SetAudioProfileAndSenario->SetVisibility(ESlateVisibility::Collapsed);
29+
CBS_AudioSenario->SetVisibility(ESlateVisibility::Collapsed);
3030

3131
#endif
3232

@@ -77,6 +77,7 @@ void UAgoraAudioWidget::ShowUserGuide()
7777
FString Guide =
7878
"Case: [BasicAudioScene]\n"
7979
"1. This is a basic audio scene.\n"
80+
"2. [IOS] senario could only use AUDIO_SCENARIO_GAME_STREAMING. (This is decided by UE)"
8081
"";
8182

8283
UBFL_Logger::DisplayUserGuide(Guide, LogMsgViewPtr);

0 commit comments

Comments
 (0)