Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
i12cu84 opened this issue Mar 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@i12cu84
Copy link

i12cu84 commented Mar 8, 2024

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)

@gtreshchev gtreshchev added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Mar 8, 2024
@i12cu84
Copy link
Author

i12cu84 commented Mar 19, 2024

I have uploaded it here
https://github.com/i12cu84/UPlayer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants