Module |
|
Header |
/Engine/Source/Runtime/MediaAssets/Public/MediaSource.h |
Include |
#include "MediaSource.h" |
class UMediaSource :
public UObject,
public IMediaOptions
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.
Name | Description | ||
---|---|---|---|
|
GetUrl() |
Get the media source's URL string (must be implemented in child classes). |
|
|
SetMediaOptionBool |
Set a boolean parameter to pass to the player. |
|
|
SetMediaOptionDouble ( |
Set a double parameter to pass to the player. |
|
|
SetMediaOptionFloat ( |
Set a float parameter to pass to the player. |
|
|
SetMediaOptionInt64 |
Set an integer64 parameter to pass to the player. |
|
|
SetMediaOptionString |
Set a string parameter to pass to the player. |
|
|
Validate() |
Validate the media source settings (must be implemented in child classes). |
Name | Description | ||
---|---|---|---|
|
GetDesiredPlayerName() |
Get the name of the desired native player. |
|
|
GetMediaOption |
Get a Boolean media option. |
|
|
double |
GetMediaOption ( |
Get a double precision floating point media option. |
|
GetMediaOption |
Get a signed integer media option. |
|
|
GetMediaOption |
Get a string media option. |
|
|
GetMediaOption |
Get a localized text media option. |
|
|
TSharedPtr< ... |
GetMediaOption ( |
Get a complex data type media option. |
|
HasMediaOption ( |
Check whether the specified option is set. |