Navigation
API > API/Plugins > API/Plugins/ElectraPlayerRuntime
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.
| Name | IElectraSafeMediaOptionInterface |
| Type | class |
| Header File | /Engine/Plugins/Media/ElectraPlayer/Source/ElectraPlayerRuntime/Public/IElectraPlayerInterface.h |
| Include Path | #include "IElectraPlayerInterface.h" |
Syntax
class IElectraSafeMediaOptionInterface : public IMediaOptions::FDataContainer
Implements Interfaces
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IElectraSafeMediaOptionInterface() |
IElectraPlayerInterface.h |
Classes
| Name | Remarks |
|---|---|
| FScopedLock |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
IMediaOptions * GetMediaOptionInterface() |
IElectraPlayerInterface.h | ||
void Lock() |
IElectraPlayerInterface.h | ||
void Unlock() |
IElectraPlayerInterface.h |