engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IMediaModule类 参考abstract

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.

成员函数说明

◆ GetCaptureSupports()

virtual const TArray< IMediaCaptureSupport * > & IMediaModule::GetCaptureSupports ( ) const
pure virtual

Get all registered capture device support objects.

返回
Collection of registered objects.
参见
RegisterCaptureDevices, UnregisterCaptureDevices

◆ GetClock()

virtual IMediaClock & IMediaModule::GetClock ( )
pure virtual

Get the media clock.

返回
Media clock.
参见
GetTicker, LockToTimecode

◆ GetOnTickPreEngineCompleted()

virtual FSimpleMulticastDelegate & IMediaModule::GetOnTickPreEngineCompleted ( )
pure virtual

Get a Delegate that is trigger once all MediaClockSink are TickInput

返回
the OnTickPreEngineCompleted

◆ GetPlayerFactories()

virtual const TArray< IMediaPlayerFactory * > & IMediaModule::GetPlayerFactories ( ) const
pure virtual

Get the list of installed media player factories.

返回
Collection of media player factories.
参见
GetPlayerFactory, RegisterPlayerFactory, UnregisterPlayerFactory

◆ GetPlayerFactory() [1/2]

virtual IMediaPlayerFactory * IMediaModule::GetPlayerFactory ( const FGuid &  PlayerPluginGuid) const
pure virtual

Get a media player factory by GUID.

参数
FactoryGuidThe GUID of the factory / player.
返回
The factory, or nullptr if not found.
参见
GetPlayerFactories, RegisterPlayerFactory, UnregisterPlayerFactory

◆ GetPlayerFactory() [2/2]

virtual IMediaPlayerFactory * IMediaModule::GetPlayerFactory ( const FName &  FactoryName) const
pure virtual

Get a media player factory by name.

参数
FactoryNameThe name of the factory.
返回
The factory, or nullptr if not found.
参见
GetPlayerFactories, RegisterPlayerFactory, UnregisterPlayerFactory

◆ GetTicker()

virtual IMediaTicker & IMediaModule::GetTicker ( )
pure virtual

Get the high-frequency ticker.

返回
The ticker.
参见
GetClock

◆ LockToTimecode()

virtual void IMediaModule::LockToTimecode ( bool  Locked)
pure virtual

Whether media objects should lock to the media clock's time code.

Time code locking changes will take effect next frame.

参数
Lockedtrue to enable time code locking, false to disable.
参见
GetClock

◆ RegisterCaptureSupport()

virtual void IMediaModule::RegisterCaptureSupport ( IMediaCaptureSupport &  Support)
pure virtual

Register a media capture devices support object.

参数
SupportThe support object to register.
参见
GetCaptureDevices, UnregisterCaptureDevices

◆ RegisterPlayerFactory()

virtual void IMediaModule::RegisterPlayerFactory ( IMediaPlayerFactory &  Factory)
pure virtual

Register a media player factory.

参数
FactoryThe media player factory to register.
参见
GetPlayerFactories, RegisterPlayerFactory, UnregisterPlayerFactory

◆ SetTimeSource()

virtual void IMediaModule::SetTimeSource ( const TSharedPtr< IMediaTimeSource, ESPMode::ThreadSafe > &  NewTimeSource)
pure virtual

Set the time source for the media clock.

参数
NewTimeSourceThe time source to set.

◆ TickPostEngine()

virtual void IMediaModule::TickPostEngine ( )
pure virtual

Called by the main loop after the game engine has been ticked.

参见
TickPostRender, TickPreEngine, TickPreSlate

◆ TickPostRender()

virtual void IMediaModule::TickPostRender ( )
pure virtual

Called by the main loop after the entire frame has been rendered.

参见
TickPostEngine, TickPreEngine, TickPreSlate

◆ TickPreEngine()

virtual void IMediaModule::TickPreEngine ( )
pure virtual

Called by the main loop before the game engine is ticked.

参见
TickPostEngine, TickPostRender, TickPreSlate

◆ TickPreSlate()

virtual void IMediaModule::TickPreSlate ( )
pure virtual

Called by the main loop before Slate is ticked.

参见
TickPostEngine, TickPostRender, TickPreEngine

◆ UnregisterCaptureSupport()

virtual void IMediaModule::UnregisterCaptureSupport ( IMediaCaptureSupport &  Support)
pure virtual

Unregister a media capture device support object.

参数
SupportThe support object to unregister.
参见
GetCaptureDevices, RegisterCaptureDevices

◆ UnregisterPlayerFactory()

virtual void IMediaModule::UnregisterPlayerFactory ( IMediaPlayerFactory &  Factory)
pure virtual

Unregister a media player factory.

参数
FactoryThe media player factory to unregister.
参见
GetPlayerFactories, RegisterPlayerFactory, RegisterPlayerFactory

该类的文档由以下文件生成: