Interface for the Media module. 更多...
#include <IMediaModule.h>
类 IMediaModule 继承关系图:Public 成员函数 | |
| virtual const TArray< IMediaCaptureSupport * > & | GetCaptureSupports () const =0 |
| Get all registered capture device support objects. 更多... | |
| virtual IMediaClock & | GetClock ()=0 |
| Get the media clock. 更多... | |
| virtual double | GetFrameStartTime () const =0 |
| Get frame's processing approximate real time start time in seconds | |
| virtual FSimpleMulticastDelegate & | GetOnTickPreEngineCompleted ()=0 |
| Get a Delegate that is trigger once all MediaClockSink are TickInput 更多... | |
| virtual const TArray< IMediaPlayerFactory * > & | GetPlayerFactories () const =0 |
| Get the list of installed media player factories. 更多... | |
| virtual IMediaPlayerFactory * | GetPlayerFactory (const FGuid &PlayerPluginGuid) const =0 |
| Get a media player factory by GUID. 更多... | |
| virtual IMediaPlayerFactory * | GetPlayerFactory (const FName &FactoryName) const =0 |
| Get a media player factory by name. 更多... | |
| virtual IMediaTicker & | GetTicker ()=0 |
| Get the high-frequency ticker. 更多... | |
| virtual void | LockToTimecode (bool Locked)=0 |
| Whether media objects should lock to the media clock's time code. 更多... | |
| virtual void | RegisterCaptureSupport (IMediaCaptureSupport &Support)=0 |
| Register a media capture devices support object. 更多... | |
| virtual void | RegisterPlayerFactory (IMediaPlayerFactory &Factory)=0 |
| Register a media player factory. 更多... | |
| virtual void | SetTimeSource (const TSharedPtr< IMediaTimeSource, ESPMode::ThreadSafe > &NewTimeSource)=0 |
| Set the time source for the media clock. 更多... | |
| virtual void | TickPostEngine ()=0 |
| Called by the main loop after the game engine has been ticked. 更多... | |
| virtual void | TickPostRender ()=0 |
| Called by the main loop after the entire frame has been rendered. 更多... | |
| virtual void | TickPreEngine ()=0 |
| Called by the main loop before the game engine is ticked. 更多... | |
| virtual void | TickPreSlate ()=0 |
| Called by the main loop before Slate is ticked. 更多... | |
| virtual void | UnregisterCaptureSupport (IMediaCaptureSupport &Support)=0 |
| Unregister a media capture device support object. 更多... | |
| virtual void | UnregisterPlayerFactory (IMediaPlayerFactory &Factory)=0 |
| Unregister a media player factory. 更多... | |
| virtual | ~IMediaModule () |
| Virtual destructor. | |
Public 成员函数 继承自 IModuleInterface | |
| virtual bool | IsGameModule () const |
| Returns true if this module hosts gameplay code 更多... | |
| virtual void | PostLoadCallback () |
| Called after the module has been reloaded | |
| virtual void | PreUnloadCallback () |
| Called before the module has been unloaded | |
| virtual void | ShutdownModule () |
| Called before the module is unloaded, right before the module object is destroyed. 更多... | |
| virtual void | StartupModule () |
| Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多... | |
| virtual bool | SupportsAutomaticShutdown () |
| Override this to set whether your module would like cleanup on application shutdown 更多... | |
| virtual bool | SupportsDynamicReloading () |
| Override this to set whether your module is allowed to be unloaded on the fly 更多... | |
| virtual | ~IModuleInterface () |
| Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface | |
Interface for the Media module.
Media Framework is ticked in several stages. The Input tick happens after the Engine (including Sequencer, game world, and Blueprints) were ticked. This allows any game logic to modify the state of tickable media objects before they fetch input.
The Update tick happens right after the Input tick when all tickable media objects have fetched the latest input based on their current state.
Finally, the Output tick happens after all game and core ticking completed, and after all render commands have been enqueued. It is the very last thing to happen before the frame is complete.
|
pure virtual |
Get all registered capture device support objects.
|
pure virtual |
|
pure virtual |
Get a Delegate that is trigger once all MediaClockSink are TickInput
|
pure virtual |
Get the list of installed media player factories.
|
pure virtual |
Get a media player factory by GUID.
| FactoryGuid | The GUID of the factory / player. |
|
pure virtual |
Get a media player factory by name.
| FactoryName | The name of the factory. |
|
pure virtual |
|
pure virtual |
Whether media objects should lock to the media clock's time code.
Time code locking changes will take effect next frame.
| Locked | true to enable time code locking, false to disable. |
|
pure virtual |
Register a media capture devices support object.
| Support | The support object to register. |
|
pure virtual |
Register a media player factory.
| Factory | The media player factory to register. |
|
pure virtual |
Set the time source for the media clock.
| NewTimeSource | The time source to set. |
|
pure virtual |
Called by the main loop after the game engine has been ticked.
|
pure virtual |
Called by the main loop after the entire frame has been rendered.
|
pure virtual |
Called by the main loop before the game engine is ticked.
|
pure virtual |
Called by the main loop before Slate is ticked.
|
pure virtual |
Unregister a media capture device support object.
| Support | The support object to unregister. |
|
pure virtual |
Unregister a media player factory.
| Factory | The media player factory to unregister. |