ICanonicalUrl( parent ),
startByte (0),
endByte (0),
- startTime (VLC_TS_INVALID)
+ startTime (VLC_TS_INVALID),
+ duration (0)
{
debugName = "Segment";
classId = CLASSID_ISEGMENT;
return startTime;
}
+mtime_t ISegment::getDuration() const
+{
+ return duration;
+}
+
+void ISegment::setDuration(mtime_t d)
+{
+ duration = d;
+}
+
size_t ISegment::getOffset() const
{
return startByte;
virtual void setByteRange (size_t start, size_t end);
virtual void setStartTime (mtime_t ztime);
virtual mtime_t getStartTime () const;
+ virtual mtime_t getDuration () const;
+ virtual void setDuration (mtime_t);
virtual size_t getOffset () const;
virtual std::vector<ISegment*> subSegments () = 0;
virtual std::string toString () const;
mtime_t startTime;
std::string debugName;
int classId;
+ mtime_t duration;
class SegmentChunk : public dash::http::Chunk
{