![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IMediaPlayerFactory.h>
Public Member Functions | |
| virtual bool | CanPlayUrl (const FString &Url, const IMediaOptions *Options, TArray< FText > *OutWarnings, TArray< FText > *OutErrors) const =0 |
| virtual TSharedPtr< IMediaPlayer, ESPMode::ThreadSafe > | CreatePlayer (IMediaEventSink &EventSink)=0 |
| virtual FText | GetDisplayName () const =0 |
| virtual FName | GetPlayerName () const =0 |
| virtual FGuid | GetPlayerPluginGUID () const =0 |
| virtual const TArray< FString > & | GetSupportedPlatforms () const =0 |
| virtual bool | SupportsFeature (EMediaFeature Feature) const =0 |
| bool | CanPlayUrl (const FString &Url, const IMediaOptions *Options) const |
| virtual int32 | GetPlayabilityConfidenceScore (const FString &Url, const IMediaOptions *Options, TArray< FText > *OutWarnings, TArray< FText > *OutErrors) const |
| bool | SupportsPlatform (const FString &PlatformName) const |
| virtual | ~IMediaPlayerFactory () |
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.
|
inlinevirtual |
Virtual destructor.
|
inline |
Whether the player can play the specified source URL.
| Url | The media source URL to check. |
| Options | Optional media player parameters. |
|
pure virtual |
Whether the player can play the specified source URL.
| Url | The media source URL to check. |
| Options | Optional media player parameters. |
| OutWarnings | Will contain warning messages (optional). |
| OutErrors | will contain error messages (optional). |
|
pure virtual |
Creates a media player.
| EventSink | The object that will receive the player's events. |
Get the human readable name of the player.
|
inlinevirtual |
Returns a confidence score how sure the player thinks it is to be able to play the specified source URL.
| Url | The media source URL to check. |
| Options | Optional media player parameters. |
| OutWarnings | Will contain warning messages (optional). |
| OutErrors | will contain error messages (optional). |
Get the unique name of the media player.
Get the GUID for this player plugin.
Get the names of platforms that the media player supports.
The returned platforms names must match the ones returned by FPlatformProperties::IniPlatformName, i.e. "Windows", "Android", etc.
|
pure virtual |
Check whether the media player supports the specified feature.
| Feature | The feature to check. |
|
inline |
Whether the player works on the given platform.
| PlatformName | The name of the platform to check. |