Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An MPD with incorrect root element attributes leads to an uncaught exception. #27

Open
mwhipple opened this issue Jul 13, 2018 · 3 comments
Labels

Comments

@mwhipple
Copy link

mwhipple commented Jul 13, 2018

An MPD such as:

<?xml version="1.0"?>
  <MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:full:2011" minBufferTime="PT1.5S">
    <Period duration="PT30S">
      <BaseURL>main/</BaseURL>
      <AdaptationSet mimeType="video/mp2t">
      <Representation id="720p" bandwidth="3200000" width="1280" height="720">
        <SegmentList timescale="90000" duration="5400000"></SegmentList>
      </Representation>
    </AdaptationSet>
  </Period>
</MPD>

Results in: TypeError: Cannot set property 'duration' of undefined rather than something defined like MISSING_SEGMENT_INFORMATION

Still working out the specifics.

@mwhipple
Copy link
Author

This looks like a manifestation of the known issue around segments inside of representations, closing for now.

@mwhipple mwhipple changed the title An MPD with an empty SegmentList isn't caught An MPD with incorrect root element attributes leads to an uncaught exception. Jul 13, 2018
@mwhipple mwhipple reopened this Jul 13, 2018
@mwhipple
Copy link
Author

Still poking my way through this :). The exception referenced above seems to be a result of incorrect attributes on the MPD element...so most likely not valid but should likely be caught and made a friendlier message.

@gesinger gesinger added the bug label Jul 18, 2018
@gkatsev
Copy link
Member

gkatsev commented Apr 9, 2020

Yeah, the error output from this is definitely not great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants