Navigation
API > API/Runtime > API/Runtime/MediaAssets
Inheritance Hierarchy
- IModuleInterface
- IMediaAssetsModule
References
| Module | MediaAssets |
| Header | /Engine/Source/Runtime/MediaAssets/Public/IMediaAssetsModule.h |
| Include | #include "IMediaAssetsModule.h" |
Syntax
class IMediaAssetsModule : public IModuleInterface
Remarks
Interface for the MediaAssets module.
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BroadcastOnMediaStateChangedEvent
(
const TArray< FString >& InActorsPathNames, |
Broadcasts the event to all subscribers. | |
| UObject * | Creates an object that implements IMediaSourceRendererInterface. | ||
| UMediaPlayer * | GetPlayerFromObject
(
UObject* Object, |
Call this to get a media player (and proxy object) from an object. | |
| void | RegisterCreateMediaSourceRenderer
(
const FOnCreateMediaSourceRenderer& Delegate |
Register a delegate to create an object that implements IMediaSourceRendererInterface. | |
| int32 | RegisterGetPlayerFromObject
(
const FOnGetPlayerFromObject& Delegate |
Plugins should call this so they can provide a function to get a media player from an object. | |
| FDelegateHandle | RegisterOnMediaStateChangedEvent
(
FMediaStateChangedDelegate::FDelegate InStateChangedDelegate |
Subscribes to the event that is called whenever any of Media state changes (such as play button was pressed). | |
| void | Unregisters the delegate passed in with RegisterCreateMediaSourceRenderer. | ||
| void | UnregisterGetPlayerFromObject
(
int32 DelegateID |
Call this to unregister a delegate. | |
| void | UnregisterOnMediaStateChangedEvent
(
FDelegateHandle InHandle |
Removes event handling. |
Typedefs
| Name | Description |
|---|---|
| FMediaStateChangedDelegate | Delegate that reacts to change in Media state (Play, Stop, Pause etc.) |
| FOnCreateMediaSourceRenderer | Delegate to create an object that implements IMediaSourceRendererInterface. |
| FOnGetPlayerFromObject | Delegate to get a player from a UObject. |