Navigation
API > API/Runtime > API/Runtime/MediaAssets
Inheritance Hierarchy
- UObject
- IMediaOptions
- UMediaSource
- UBaseMediaSource
- UFileMediaSource
- UImgMediaSource
- UStreamMediaSource
- UTimeSynchronizableMediaSource
- UCaptureCardMediaSource
- UAjaMediaSource
- UBlackmagicMediaSource
- URivermaxMediaSource
- UPlatformMediaSource
- UProxyMediaSource
- USharedMemoryMediaSource
References
| Module | MediaAssets |
| Header | /Engine/Source/Runtime/MediaAssets/Public/MediaSource.h |
| Include | #include "MediaSource.h" |
Syntax
UCLASS (Abstract, EditInlineNew, BlueprintType, HideCategories=(Object), MinimalAPI)
class UMediaSource :
public UObject,
public IMediaOptions
Remarks
Abstract base class for media sources.
Media sources describe the location and/or settings of media objects that can be played in a media player, such as a video file on disk, a video stream on the internet, or a web cam attached to or built into the target device. The location is encoded as a media URL string, whose URI scheme and optional file extension will be used to locate a suitable media player.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
||
| void | Starts the process to generate a thumbnail. | ||
| FName | |||
| FString | GetMediaOption
(
const FName& Key, |
||
| int64 | GetMediaOption
(
const FName& Key, |
||
| double | GetMediaOption
(
const FName& Key, |
||
| bool | GetMediaOption
(
const FName& Key, |
||
| FText | GetMediaOption
(
const FName& Key, |
||
| TSharedPtr< FDataContainer, ESPMode::ThreadSafe > | GetMediaOption
(
const FName& Key, |
||
| UTexture * | GetThumbnail () |
Gets our thumbnail texture, if any. | |
| FString | GetUrl () |
Get the media source's URL string (must be implemented in child classes). | |
| bool | HasMediaOption
(
const FName& Key |
||
| void | RegisterSpawnFromFileExtension
(
const FString& Extension, |
Call this to register a callback when someone calls SpawnMediaSourceForString. | |
| void | SetMediaOptionBool
(
const FName& Key, |
Set a boolean parameter to pass to the player. | |
| void | SetMediaOptionDouble
(
const FName& Key, |
Set a double parameter to pass to the player. | |
| void | SetMediaOptionFloat
(
const FName& Key, |
Set a float parameter to pass to the player. | |
| void | SetMediaOptionInt64
(
const FName& Key, |
Set an integer64 parameter to pass to the player. | |
| void | SetMediaOptionString
(
const FName& Key, |
Set a string parameter to pass to the player. | |
| void | SetThumbnail
(
UTexture* InTexture |
Sets what the thumbnail texture should be. | |
| UMediaSource * | SpawnMediaSourceForString
(
const FString& MediaPath, |
Call this to try and create a media source appropriate for the media. | |
| const UObject * | ToUObject () |
||
| void | UnregisterSpawnFromFileExtension
(
const FString& Extension |
Call this to unregister a callback set with RegisterSpawnFromFileExtension. | |
| bool | Validate () |
Validate the media source settings (must be implemented in child classes). |