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

Error with ignoreMinBufferTime --> Cannot read property 'variants' of null #2015

Closed
avelad opened this issue Jul 1, 2019 · 1 comment
Closed
Assignees
Labels
flag: Why didn't we catch this sooner This issue is embarassing; we may still need an automated test that could have prevented this issue status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@avelad
Copy link
Member

avelad commented Jul 1, 2019

Have you read the FAQ and checked for duplicate open issues? yes

What version of Shaka Player are you using? 2.5.2

Can you reproduce the issue with our latest release version? Yes

Can you reproduce the issue with the latest code from master? Yes

Are you using the demo app or your own custom app? Both

If custom app, can you reproduce the issue using our demo app? Yes

What browser and OS are you using?
Chrome 75 over macOS Mojave

For embedded devices (smart TVs, etc.), what model and firmware version are you using?

What are the manifest and license server URIs?

https://livesim.dashif.org/livesim/segtimeline_1/utc_head/testpic_6s/Manifest.mpd

What did you do?

Load the next page: https://shaka-player-demo.appspot.com/demo/#audiolang=es-ES;textlang=es-ES;ignoreMinBufferTime=true;uilang=es-ES;asset=https://livesim.dashif.org/livesim/segtimeline_1/utc_head/testpic_6s/Manifest.mpd;panel=SEARCH;build=uncompiled

Stream url: https://livesim.dashif.org/livesim/segtimeline_1/utc_head/testpic_6s/Manifest.mpd
Enable ignoreMinBufferTime param (custom config)

What did you expect to happen?
The video start without any problem

What actually happened?

There are a error: "Cannot read property 'variants' of null"

error

@theodab theodab self-assigned this Jul 1, 2019
@theodab theodab added type: bug Something isn't working correctly flag: Why didn't we catch this sooner This issue is embarassing; we may still need an automated test that could have prevented this issue and removed needs triage labels Jul 1, 2019
@theodab
Copy link
Contributor

theodab commented Jul 1, 2019

Ok, after looking over it, I found a bug in the DASH parser where it can end up setting the presentationDelay to NaN in some situations. Now that I see it, it's obvious enough that I briefly wondered if that was somehow intended behavior. I'll get a CL out soon. Thanks for the bug report!

@shaka-bot shaka-bot added this to the v2.6 milestone Jul 1, 2019
TheModMaker pushed a commit that referenced this issue Jul 3, 2019
In the DASH parser, if there was no suggestedPresentationDelay and
ignoreMinBufferTime was set to true, the parser would set the
presentationDelay to NaN. This was because Math.max() will return NaN
if undefined is passed into it.
This changes minBufferTime to default to 0, if ignoreMinBufferTime is
true.

Fixes #2015

Change-Id: I8fc61706a04d14fd729e2185ce993a8bc87e48e5
AnteWall pushed a commit to AnteWall/shaka-player that referenced this issue Jul 17, 2019
In the DASH parser, if there was no suggestedPresentationDelay and
ignoreMinBufferTime was set to true, the parser would set the
presentationDelay to NaN. This was because Math.max() will return NaN
if undefined is passed into it.
This changes minBufferTime to default to 0, if ignoreMinBufferTime is
true.

Fixes shaka-project#2015

Change-Id: I8fc61706a04d14fd729e2185ce993a8bc87e48e5
@shaka-project shaka-project locked and limited conversation to collaborators Aug 30, 2019
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
flag: Why didn't we catch this sooner This issue is embarassing; we may still need an automated test that could have prevented this issue status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

3 participants