Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaSoundComponent
Description
Set the media player that provides the audio samples.
| Name | SetMediaPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaSoundComponent.h |
| Include Path | #include "MediaSoundComponent.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaSoundComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Media|MediaSoundComponent")
void SetMediaPlayer
(
UMediaPlayer * NewMediaPlayer
)
Parameters
| Name | Remarks |
|---|---|
| NewMediaPlayer | The player to set. |