UMediaSoundComponent::SetMediaPlayer

Set 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

void SetMediaPlayer
(
    UMediaPlayer * NewMediaPlayer
)

Remarks

Set the media player that provides the audio samples.

Parameters

Parameter

Description

NewMediaPlayer

The player to set.

See Also