Navigation
API > API/Runtime > API/Runtime/Media
Interface for media player factories.
Media player factories are used to create instances of media player implementations. Most media players will be implemented inside plug-ins, which will register their factories on startup. The Media module will use the CanPlayUrl() method on this interface to determine which media player to instantiate for a given media source.
| Name | IMediaPlayerFactory |
| Type | class |
| Header File | /Engine/Source/Runtime/Media/Public/IMediaPlayerFactory.h |
| Include Path | #include "IMediaPlayerFactory.h" |
Syntax
class IMediaPlayerFactory
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IMediaPlayerFactory() |
Virtual destructor. | IMediaPlayerFactory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CanPlayUrl
(
const FString& Url, |
Whether the player can play the specified source URL. | IMediaPlayerFactory.h | |
bool CanPlayUrl
(
const FString& Url, |
Whether the player can play the specified source URL. | IMediaPlayerFactory.h | |
TSharedPtr< IMediaPlayer, ESPMode::ThreadSafe > CreatePlayer
(
IMediaEventSink& EventSink |
Creates a media player. | IMediaPlayerFactory.h | |
| Get the human readable name of the player. | IMediaPlayerFactory.h | ||
| Returns a confidence score how sure the player thinks it is to be able to play the specified source URL. | IMediaPlayerFactory.h | ||
| Get the unique name of the media player. | IMediaPlayerFactory.h | ||
| Get the GUID for this player plugin. | IMediaPlayerFactory.h | ||
const TArray< FString > & GetSupportedPlatforms () |
Get the names of platforms that the media player supports. | IMediaPlayerFactory.h | |
bool SupportsFeature
(
EMediaFeature Feature |
Check whether the media player supports the specified feature. | IMediaPlayerFactory.h | |
bool SupportsPlatform
(
const FString& PlatformName |
Whether the player works on the given platform. | IMediaPlayerFactory.h |