mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Merge pull request #957 from Bastian35022/dev
Check for valid periods in DASH MPD after parsing.
This commit is contained in:
commit
be95968fe2
1 changed files with 5 additions and 0 deletions
|
|
@ -159,6 +159,11 @@ public class MediaPresentationDescriptionParser extends DefaultHandler
|
|||
}
|
||||
}
|
||||
|
||||
if (periods.isEmpty()) {
|
||||
throw new ParserException(
|
||||
"no valid periods present in media presentation description");
|
||||
}
|
||||
|
||||
return buildMediaPresentationDescription(availabilityStartTime, durationMs, minBufferTimeMs,
|
||||
dynamic, minUpdateTimeMs, timeShiftBufferDepthMs, utcTiming, location, periods);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue