Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaTexture
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetMediaPlayer
(
UMediaPlayer* NewMediaPlayer |
Set the media player that provides the video samples. | MediaTexture.h |
|
void SetMediaPlayer
(
UMediaPlayer* NewMediaPlayer, |
Set the media player that provides the video samples and optionally the sample queue that receives them. | MediaTexture.h |
SetMediaPlayer(UMediaPlayer *)
Description
Set the media player that provides the video samples.
| Name | SetMediaPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaTexture.h |
| Include Path | #include "MediaTexture.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaTexture.cpp |
UFUNCTION (BlueprintCallable, Category="Media|MediaTexture")
void SetMediaPlayer
(
UMediaPlayer * NewMediaPlayer
)
Parameters
| Name | Remarks |
|---|---|
| NewMediaPlayer | The player to set. |
See Also
SetMediaPlayer(UMediaPlayer *, TSharedPtr< FMediaTextureSampleQueue >)
Description
Set the media player that provides the video samples and optionally the sample queue that receives them. If no sample queue is provided, the media texture creates a new one internally.
| Name | SetMediaPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaTexture.h |
| Include Path | #include "MediaTexture.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaTexture.cpp |
void SetMediaPlayer
(
UMediaPlayer * NewMediaPlayer,
TSharedPtr < FMediaTextureSampleQueue > InSampleQueue
)
Parameters
| Name | Remarks |
|---|---|
| NewMediaPlayer | The player to set. |
| InSampleQueue | Provide an optional sample queue to use instead of creating a new one. |