Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

(Suggestion)Can you add a blueprint that plays in the background when the software loses focus? #65

Open
@i12cu84

Description

@i12cu84

At present, my environment is UE 5.2.1, which can be used normally after packing Android, but it cannot play audio in the background of Android.
I went to the UE forum and looked it up. I tried a lot of things, but it didn't work.

For example, the following method:
1.To manipulate the file:
Defaultengin.ini and BaseEngine.ini are added
[Audio]
UnfocusedVolumeMultiplier=1.0
2.UE project setting
Level Editor -> Miscellaneous -> Sound -> Allow Background Audio (tick)
3.UE BlueprintFunctionLibrary to Cpp code
UFUNCTION(BlueprintCallable, Category = "")
static float SetSUVM()
{
FApp::SetUnfocusedVolumeMultiplier(1.0f);
return FApp::GetUnfocusedVolumeMultiplier();
}

...emmm,I might need your help?

A UE(5.2.1) based music player written by me as a hobby (I will open source it on github sometime)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions