Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVariant GetMediaInfo
(
FName InfoName |
Get information about the media that is playing. | MediaPlayer.h | |
bool GetMediaInfo
(
T& Result, |
Templated version of GetMediaInfo. No need to deal with variants. | MediaPlayer.h |
GetMediaInfo(FName)
Description
Get information about the media that is playing. Not all formats support all information. Some possible common information is in this file, look for MediaInfoNameSourceNumMips for example.
| Name | GetMediaInfo |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include Path | #include "MediaPlayer.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
FVariant GetMediaInfo
(
FName InfoName
) const
Requested information, or empty if not available.
Parameters
| Name | Remarks |
|---|---|
| InfoName | Name of the information we want. |
GetMediaInfo(T &, FName)
Description
Templated version of GetMediaInfo. No need to deal with variants.
| Name | GetMediaInfo |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include Path | #include "MediaPlayer.h" |
template<typename T>
bool GetMediaInfo
(
T & Result,
FName InfoName
) const
True if the information is found, false if not.
Parameters
| Name | Remarks |
|---|---|
| T | Type of the information. |
| Result | If the information is found and is the correct type, then this will be set to its value. It will not be set otherwise. |
| InfoName | Name of the information. |