I am having trouble controlling the volume of a MediaPlayer on Android. This approach works perfectly on the desktop.
SoundClass = Cast<USoundClass>(StaticLoadObject(USoundClass::StaticClass(),
NULL,
TEXT("SoundClass'/Game/Movies/360SoundClass.360SoundClass'")));
if (SoundClass)
{
SoundClass->Properties.Volume = NewVolume;
}
I have also tried to iterate over AAmbientSound actors, getting the AmbientSound of the scene, setting it’s AudioComponents VolumeMultiplier, or getting the main audio device with GEngine->GetMainAudioDevice() and setting the TransientMasterVolume.
All of this works flawlessly on the desktop but it stops working on Android!
I am trying this out in GearVR mode.