Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer
Description
Set the volume on the native player if not mixing with Sound Wave asset.
The SetNativeVolume can be used to change the audio output volume at runtime. Note that not all media player plug-ins may support native audio output on all platforms.
| Name | SetNativeVolume |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include Path | #include "MediaPlayer.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
UFUNCTION (BlueprintCallable, Category="Media|MediaPlayer")
bool SetNativeVolume
(
float Volume
)
true on success, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Volume | The volume to set. |
See Also
- NativeAudioOut