20 #ifndef MEDIASTREAMCONTEXT_H
21 #define MEDIASTREAMCONTEXT_H
47 mediaType((
MediaType)
type), adaptationSet(NULL), representation(NULL),
48 fragmentIndex(0), timeLineIndex(0), fragmentRepeatCount(0), fragmentOffset(0),
49 eos(false), fragmentTime(0), periodStartOffset(0), timeStampOffset(0), index_ptr(NULL), index_len(0),
50 lastSegmentTime(0), lastSegmentNumber(0), lastSegmentDuration(0), adaptationSetIdx(0), representationIndex(0), profileChanged(true),
51 adaptationSetId(0), fragmentDescriptor(), context(ctx), initialization(
""),
52 mDownloadedFragment(), discontinuity(false), mSkipSegmentOnError(true),
55 , failAdjacentSegment(false),httpErrorCode(0)
122 bool CacheFragment(std::string fragmentUrl,
unsigned int curlInstance,
double position,
double duration,
const char *range = NULL,
bool initSegment =
false,
bool discontinuity =
false,
bool playingAd =
false,
double pto = 0, uint32_t scale = 0,
bool overWriteTrackId =
false);
158 const IAdaptationSet *adaptationSet;
159 const IRepresentation *representation;
162 int fragmentRepeatCount;
163 uint64_t fragmentOffset;
170 double downloadedDuration;
171 double periodStartOffset;
172 uint64_t timeStampOffset;
175 uint64_t lastSegmentTime;
176 uint64_t lastSegmentNumber;
177 uint64_t lastSegmentDuration;
178 int adaptationSetIdx;
179 int representationIndex;
181 std::string initialization;
182 uint32_t adaptationSetId;
183 bool mSkipSegmentOnError;
185 bool failAdjacentSegment;