UMediaPlayer::SetNativeVolume

Set the volume on the native player if not mixing with Sound Wave asset.

Choose your operating system:

Windows

macOS

Linux

References

Module

MediaAssets

Header

/Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h

Include

#include "MediaPlayer.h"

Source

/Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp

Syntax

bool SetNativeVolume
(
    float Volume
)

Remarks

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.

that not all media player plug-ins may support native audio output on all platforms.

Returns

true on success, false otherwise.

Parameters

Parameter

Description

Volume

The volume to set.

See Also