Navigation
API > API/Plugins > API/Plugins/ElectraPlayerPlugin
Inheritance Hierarchy
- TSharedFromThis
- IMediaOptions::FDataContainer
- IElectraSafeMediaOptionInterface
- FElectraSafeMediaOptionInterface
References
| Module | ElectraPlayerPlugin |
| Header | /Engine/Plugins/Media/ElectraPlayer/Source/ElectraPlayerPlugin/Public/IElectraPlayerPluginModule.h |
| Include | #include "IElectraPlayerPluginModule.h" |
Syntax
class IElectraSafeMediaOptionInterface : public IMediaOptions::FDataContainer
Remarks
This class is used to get safe access to an IMediaOptions interface. When passing IMediaOptions through media framework as a POD pointer there is the risk that it is actually from a derived class like UMediaSource which is subject to GC. Thus it is not safe to keep the POD IMediaOptions around. This class is intended to be derived and instantiated from and stored as a TSharedPtr in a derived UMediaSource class. Then, as the media player is opened and the POD IMediaOptions is passed along, a GetMediaOption("GetSafeMediaOptions") query will be made on it to get this instance. If future access to the IMediaOptions is needed it will be made through this class by first locking, getting and using the IMediaOptions pointer returned here if it not null and unlocking afterwards.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| IMediaOptions * | |||
| void | Lock () |
||
| void | Unlock () |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FScopedLock |