Navigation
API > API/Runtime > API/Runtime/Media
References
| Module | Media |
| Header | /Engine/Source/Runtime/Media/Public/IMediaPlayerFactory.h |
| Include | #include "IMediaPlayerFactory.h" |
Syntax
class IMediaPlayerFactory
Remarks
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.
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanPlayUrl
(
const FString& Url, |
Whether the player can play the specified source URL. | |
| bool | CanPlayUrl
(
const FString& Url, |
Whether the player can play the specified source URL. | |
| TSharedPtr< IMediaPlayer, ESPMode::ThreadSafe > | CreatePlayer
(
IMediaEventSink& EventSink |
Creates a media player. | |
| FText | Get the human readable name of the player. | ||
| int32 | GetPlayabilityConfidenceScore
(
const FString& Url, |
Returns a confidence score how sure the player thinks it is to be able to play the specified source URL. | |
| FName | Get the unique name of the media player. | ||
| FGuid | Get the GUID for this player plugin. | ||
| const TArray< FString > & | Get the names of platforms that the media player supports. | ||
| bool | SupportsFeature
(
EMediaFeature Feature |
Check whether the media player supports the specified feature. | |
| bool | SupportsPlatform
(
const FString& PlatformName |
Whether the player works on the given platform. |