Navigation
API > API/Plugins > API/Plugins/MP4Utilities
Abstract base class to read data from an mp4 file.
| Name | IMP4DataReaderBase |
| Type | class |
| Header File | /Engine/Plugins/Media/MP4Utilities/Source/MP4Utilities/Public/MP4DataReader.h |
| Include Path | #include "MP4DataReader.h" |
Syntax
class IMP4DataReaderBase
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IMP4DataReaderBase() |
MP4DataReader.h |
Enums
Public
| Name | Remarks |
|---|---|
| EResult |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FCancellationCheckDelegate | TBaseDelegate_NoParams< bool > | A delegate passed into the read methods through which the reader implementation can call into to see if the read request has been canceled. | MP4DataReader.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int64 GetCurrentFileOffset () |
This method shall return the current file offset, which is initially zero unless the file has been opened such that the initial position for this reader is not zero. | MP4DataReader.h | |
FString GetLastError() |
If a read error occurred and ReadData()_ returns EResult::ReadError_ a human-readable message of what caused the error should be returned. |
MP4DataReader.h | |
int64 GetTotalFileSize () |
This method shall return the total size of the file. | MP4DataReader.h | |
bool HasReachedEOF () |
A convenience method to return `true_ when all data has been read. | MP4DataReader.h | |
int64 ReadData
(
void* InOutBuffer, |
This method reads data into the provided buffer from the specified absolute offset. | MP4DataReader.h |