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

Exception in v4.0.0 with streaming.startAtSegmentBoundary #4188

Closed
EinBaum opened this issue May 3, 2022 · 2 comments · Fixed by #4216 or #4235
Closed

Exception in v4.0.0 with streaming.startAtSegmentBoundary #4188

EinBaum opened this issue May 3, 2022 · 2 comments · Fixed by #4216 or #4235
Assignees
Labels
priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@EinBaum
Copy link

EinBaum commented May 3, 2022

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

What version of Shaka Player are you using?
4.0.0

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

Can you reproduce the issue with the latest code from main?
yes

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

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

What browser and OS are you using?
Firefox 99

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

What are the manifest and license server URIs?

What configuration are you using? What is the output of player.getConfiguration()?

This issue will ONLY occur if you set "streaming.startAtSegmentBoundary" to true.

What did you do?

call "load()"

What did you expect to happen?
video plays

What actually happened?

ERROR TypeError: k.segmentIndex[Symbol.iterator]().seek is not a function

const ref = stream.segmentIndex[Symbol.iterator]().seek(time);

calls "seek()" but that function has been removed in version 4.0

@EinBaum EinBaum added the type: bug Something isn't working correctly label May 3, 2022
@github-actions github-actions bot added this to the v3.3 milestone May 3, 2022
@avelad avelad modified the milestones: v3.3, v4.1 May 4, 2022
@avelad avelad added the priority: P1 Big impact or workaround impractical; resolve before feature release label May 4, 2022
@avelad
Copy link
Member

avelad commented May 4, 2022

I have checked and it happens. Seems like a regression when removing deprecated code in 4.0. @joeyparrish , can you take a look at it?

@joeyparrish joeyparrish self-assigned this May 11, 2022
@joeyparrish joeyparrish changed the title shaka 4.0 seek() Removed seek() method in SegmentIterator still called by Player in v4.0.0 May 11, 2022
@joeyparrish
Copy link
Member

There are no tests that activate that code path! Fixing the code was easy. I'm adding tests now. PR coming soon.

@joeyparrish joeyparrish changed the title Removed seek() method in SegmentIterator still called by Player in v4.0.0 Exception in v4.0.0 with streaming.startAtSegmentBoundary May 11, 2022
joeyparrish added a commit to joeyparrish/shaka-player that referenced this issue May 11, 2022
v4.0.0 introduced a regression.  When SegmentIterator's seek() method
was removed, one reference to it was missed in Player.  This was only
used when streaming.startAtSegmentBoundary is true, and there were no
tests to exercise that code path.

This adds new tests and fixes the regression.

Closes shaka-project#4188
joeyparrish added a commit that referenced this issue May 11, 2022
v4.0.0 introduced a regression.  When SegmentIterator's seek() method
was removed, one reference to it was missed in Player.  This was only
used when streaming.startAtSegmentBoundary is true, and there were no
tests to exercise that code path.

This adds new tests and fixes the regression.

Closes #4188
This was referenced May 11, 2022
joeyparrish added a commit that referenced this issue May 17, 2022
v4.0.0 introduced a regression.  When SegmentIterator's seek() method
was removed, one reference to it was missed in Player.  This was only
used when streaming.startAtSegmentBoundary is true, and there were no
tests to exercise that code path.

This adds new tests and fixes the regression.

Closes #4188
joeyparrish added a commit that referenced this issue May 17, 2022
v4.0.0 introduced a regression.  When SegmentIterator's seek() method
was removed, one reference to it was missed in Player.  This was only
used when streaming.startAtSegmentBoundary is true, and there were no
tests to exercise that code path.

This adds new tests and fixes the regression.

Closes #4188
joeyparrish added a commit that referenced this issue May 17, 2022
v4.0.0 introduced a regression.  When SegmentIterator's seek() method
was removed, one reference to it was missed in Player.  This was only
used when streaming.startAtSegmentBoundary is true, and there were no
tests to exercise that code path.

This adds new tests and fixes the regression.

Closes #4188
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
3 participants