Interface for media player factories. 更多...
#include <IMediaPlayerFactory.h>
Public 成员函数 | |
| bool | CanPlayUrl (const FString &Url, const IMediaOptions *Options) const |
| Whether the player can play the specified source URL. 更多... | |
| virtual bool | CanPlayUrl (const FString &Url, const IMediaOptions *Options, TArray< FText > *OutWarnings, TArray< FText > *OutErrors) const =0 |
| Whether the player can play the specified source URL. 更多... | |
| virtual TSharedPtr< IMediaPlayer, ESPMode::ThreadSafe > | CreatePlayer (IMediaEventSink &EventSink)=0 |
| Creates a media player. 更多... | |
| virtual FText | GetDisplayName () const =0 |
| Get the human readable name of the player. 更多... | |
| virtual FName | GetPlayerName () const =0 |
| Get the unique name of the media player. 更多... | |
| virtual FGuid | GetPlayerPluginGUID () const =0 |
| Get the GUID for this player plugin. 更多... | |
| virtual const TArray< FString > & | GetSupportedPlatforms () const =0 |
| Get the names of platforms that the media player supports. 更多... | |
| virtual bool | SupportsFeature (EMediaFeature Feature) const =0 |
| Check whether the media player supports the specified feature. 更多... | |
| bool | SupportsPlatform (const FString &PlatformName) const |
| Whether the player works on the given platform. 更多... | |
| virtual | ~IMediaPlayerFactory () |
| Virtual destructor. | |
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.
|
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. |
|
pure virtual |
Get the human readable name of the player.
|
pure virtual |
Get the unique name of the media player.
|
pure virtual |
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. |