Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
Mp4ErrorFrame.h
1#pragma once
2#include "Frame.h"
3#include "Utils.h"
4
5class Mp4ErrorFrame : public Frame {
6public:
12
14 Mp4ErrorFrame(int _errorType, int _errorCode, std::string &_errorMsg)
15 {
16 errorType = _errorType;
17 errorCode = _errorCode;
18 errorMsg = _errorMsg;
19 }
20
21 Mp4ErrorFrame(int _errorType, int _errorCode, std::string &_errorMsg, int _openErrorCode, uint64_t& _errorMp4TS)
22 {
23 errorType = _errorType;
24 errorCode = _errorCode;
25 errorMsg = _errorMsg;
26 openErrorCode = _openErrorCode;
27 errorMp4TS = _errorMp4TS;
28 }
29
31 {
32 return true;
33 }
34
35 int errorType; // SEEK/STEP
36 int errorCode; // defined in AIPExceptions.h
37 uint64_t errorMp4TS = 0; // skipTS in randomSeek, lastFrameTS in step
38 int openErrorCode = 0; // expose some libmp4 error codes
39 std::string errorMsg; // keep chars < 500
40};
Definition Frame.h:10
Definition Mp4ErrorFrame.h:5
Mp4ErrorFrameType
Definition Mp4ErrorFrame.h:8
@ MP4_SEEK
Definition Mp4ErrorFrame.h:9
@ MP4_STEP
Definition Mp4ErrorFrame.h:10
int errorType
Definition Mp4ErrorFrame.h:35
std::string errorMsg
Definition Mp4ErrorFrame.h:39
Mp4ErrorFrame()
Definition Mp4ErrorFrame.h:13
Mp4ErrorFrame(int _errorType, int _errorCode, std::string &_errorMsg, int _openErrorCode, uint64_t &_errorMp4TS)
Definition Mp4ErrorFrame.h:21
bool isMp4ErrorFrame()
Definition Mp4ErrorFrame.h:30
int errorCode
Definition Mp4ErrorFrame.h:36
uint64_t errorMp4TS
Definition Mp4ErrorFrame.h:37
Mp4ErrorFrame(int _errorType, int _errorCode, std::string &_errorMsg)
Definition Mp4ErrorFrame.h:14
int openErrorCode
Definition Mp4ErrorFrame.h:38