Closed vish91 closed 4 years ago
That does look like a valid bug to me, I'm not aware of any reason for the extra <Period>
tag being there
:) Well luckily doesn't seem like a big change. All we need is to make sure when AddNewPeriod()
is called we can check if there are any existing periods that are empty.
This will keep us backwards compatible as well so that people using single period do not have to make any changes to current behavior of NewMPD()
which by default adds a new empty Period
to MPD.
Opened a PR if you would like to take a look. ^
@stuarthicks it's October.. does this count as hacktoberfest :D
Hey guys, I have a quick question about the
<MPD>
object structure and def. I think I understand that we haveperiod
andPeriods
to be backwards compatible I think for those who want to generate a single period dash without the ID ? My question is around the multi period dash where an extra and empty Period is getting attached when aNewMPD()
is being created. e.g I wrote this small test to show thiswhich will give you an error
I think that extra
<Period></Period>
is unwanted and shouldn't be present in the manifest.Let me know if this test makes sense ? Coz I see the other tests were written in a similar way but might make sense back in day before when it was a single period only support, so one would just assume that a an empty period is created with NewMPD() and we call GetCurrentPeriod() to fetch current period.