UMediaPlayer::SetNativeVolume

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss