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

Uncaught TypeError when quality is -1 #1437

Closed
5 tasks done
davemevans opened this issue Jun 7, 2016 · 3 comments
Closed
5 tasks done

Uncaught TypeError when quality is -1 #1437

davemevans opened this issue Jun 7, 2016 · 3 comments
Assignees
Milestone

Comments

@davemevans
Copy link
Contributor

Environment
Steps to reproduce
  1. Load MPD with console open
Observed behaviour

Uncaught TypeError: Cannot read property 'MSETimeOffset' of null

In createBuffer, streamProcessor.getRepresentationInfoForQuality(requiredQuality) will return undefined if requiredQuality is -1 which it could be if no quality update event has been triggered. When .MSETimeOffset is accessed, a TypeError is thrown.

This has been alluded to on the mailing list and in PR #1436. Probably caused by #1434.

@davemevans
Copy link
Contributor Author

davemevans commented Jun 7, 2016

I get a different uncaught TypeError with streams with fragmented text (eg http://rdmedia.bbc.co.uk/dash/ondemand/elephants_dream/1/client_manifest-all.mpd), which seems to be caused by a quality of -1.

Console log is RepresentationController.js:284 Uncaught TypeError: Cannot read property 'adaptation' of undefined. getCurrentRepresentation is returning undefined for fragmentedText.

@dsparacio
Copy link
Contributor

My bad, this should be a quick fix.

@dsparacio
Copy link
Contributor

Fixed with PR #1443

@dsparacio dsparacio removed this from the 2.2.0 milestone Jun 7, 2016
@davemevans davemevans added this to the 2.2.0 milestone Jul 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants