Add 'T' for presentation time
Presentation time format is PT<number>S. All seconds to XML duration uses SecondToXmlDuration now. Change-Id: I3afcda9820fc968b35cfb929e0c7de4e2d91f9a2
This commit is contained in:
parent
05a32f42f7
commit
4ee3bb7e61
|
@ -89,8 +89,9 @@ xmlDocPtr MpdBuilder::GenerateMpd() {
|
|||
"urn:mpeg:DASH:schema:MPD:2011 DASH-MPD.xsd";
|
||||
mpd.SetStringAttribute("xsi:schemaLocation", kDashSchemaMpd2011);
|
||||
|
||||
static const char kMinBufferTimeTwoSeconds[] = "PT2S";
|
||||
mpd.SetStringAttribute("minBufferTime", kMinBufferTimeTwoSeconds);
|
||||
// Currently set to 2. Does this need calculation?
|
||||
const int kMinBufferTime = 2;
|
||||
mpd.SetStringAttribute("minBufferTime", SecondsToXmlDuration(kMinBufferTime));
|
||||
|
||||
// Iterate thru AdaptationSets and add them to one big Period element.
|
||||
XmlNode period("Period");
|
||||
|
|
|
@ -76,7 +76,7 @@ std::string GetCodecs(const MediaInfo& media_info) {
|
|||
}
|
||||
|
||||
std::string SecondsToXmlDuration(uint32 seconds) {
|
||||
return "P" + base::UintToString(seconds) + "S";
|
||||
return "PT" + base::UintToString(seconds) + "S";
|
||||
}
|
||||
|
||||
bool GetDurationAttribute(xmlNodePtr node, uint32* duration) {
|
||||
|
|
Loading…
Reference in New Issue