Navigation
API > API/Plugins > API/Plugins/MediaPlate
References
| Module | MediaPlate |
| Header | /Engine/Plugins/Media/MediaPlate/Source/MediaPlate/Public/MediaPlateResource.h |
| Include | #include "MediaPlateResource.h" |
Syntax
USTRUCT (BlueprintType )
struct FMediaPlateResource
Remarks
Helper struct to wrap source selection functionality, and enabling the usage of media source properties for places like Remote Control.
This struct allows to choose between Asset, External File, Playlist options. It's mainly conceived to be used by MediaPlateComponent.
See FMediaPlayerResourceCustomization class for its customization.
Functions
| Type | Name | Description | |
|---|---|---|---|
| UMediaPlaylist * | Returns the active playlist, if any | ||
| FStringView | Returns the current external media path, if any | ||
| UMediaSource * | Returns the current asset-based Media Source, if any | ||
| EMediaPlateResourceType | Return current resource type | ||
| UMediaSource * | Returns the currently selected Media Source, based on current source Type. | ||
| UMediaPlaylist * | Returns the current source playlist, if any | ||
| void | LoadExternalMedia
(
const FString& InFilePath, |
Loads the external source at the specified path, creating a media source with the specified outer. | |
| void | Modify () |
Note that the Active Playlist will be modified. | |
| void | SelectAsset
(
const UMediaSource* InMediaSource, |
Select asset based media source. Will also update source type to Asset | |
| void | SelectPlaylist
(
const UMediaPlaylist* InPlaylist |
Select the specified playlist. Will also update source type to Playlist | |
| void | SetResourceType
(
EMediaPlateResourceType InType |
Set current resource type |