UMediaSoundComponent::GetMediaPlayer

Get the media player that provides the audio samples.

Choose your operating system:

Windows

macOS

Linux

References

Module

MediaAssets

Header

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

Include

#include "MediaSoundComponent.h"

Source

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

Syntax

UMediaPlayer * GetMediaPlayer() const

Remarks

Get the media player that provides the audio samples.

Returns

The component's media player, or nullptr if not set.

See Also