mediaTemplate->setSourceUrl(mediaurl);
if(templateNode->hasAttribute("startNumber"))
- mediaTemplate->startIndex.Set(Integer<uint64_t>(templateNode->getAttributeValue("startNumber")));
+ mediaTemplate->startNumber.Set(Integer<uint64_t>(templateNode->getAttributeValue("startNumber")));
if(templateNode->hasAttribute("duration"))
mediaTemplate->duration.Set(Integer<mtime_t>(templateNode->getAttributeValue("duration")));
debugName = "SegmentTemplate";
classId = Segment::CLASSID_SEGMENT;
timescale.Set( 0 );
- startIndex.Set( 0 );
+ startNumber.Set( 0 );
initialisationSegment.Set( NULL );
}
{
public:
MediaSegmentTemplate( ICanonicalUrl * = NULL );
- Property<size_t> startIndex;
+ Property<size_t> startNumber;
Property<uint64_t> timescale;
};
size_t Url::Component::getSegmentNumber(size_t index, const Representation *rep) const
{
- index += templ->startIndex.Get();
+ index += templ->startNumber.Get();
/* live streams / templated */
if(rep->getMPD()->isLive() && templ->duration.Get())
{