{
this->baseUrls.push_back(url);
}
-const std::vector<BaseUrl *>& Segment::getBaseUrls () const
-{
- return this->baseUrls;
-}
+
void Segment::setByteRange (int start, int end)
{
this->startByte = start;
this->endByte = end;
}
-int Segment::getStartByte () const
-{
- return this->startByte;
-}
-int Segment::getEndByte () const
-{
- return this->endByte;
-}
+
dash::http::Chunk* Segment::toChunk ()
{
Chunk *chunk = new Chunk();
{
return this->parentRepresentation;
}
-
-int Segment::getSize() const
-{
- return this->size;
-}
virtual bool isSingleShot () const;
virtual void done ();
virtual void addBaseUrl (BaseUrl *url);
- virtual const std::vector<BaseUrl *>& getBaseUrls () const;
virtual void setByteRange (int start, int end);
- virtual int getStartByte () const;
- virtual int getEndByte () const;
virtual dash::http::Chunk* toChunk ();
const Representation* getParentRepresentation() const;
- virtual int getSize() const;
protected:
std::string sourceUrl;