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

Attempt to fetch one chunk prior on seeking #429

Conversation

sanbornhilland
Copy link
Contributor

As per issue #330, manifests are only required to be approx.
correct with respect to their description of the media segments.
In order to avoid stalling when seeking through content like this,
fetch the chunk prior to the one that supposedly contains the
current time.

This is an attempt to apply a similar fix to Ia7bb74d0120.

@sanbornhilland
Copy link
Contributor Author

I'm not convinced this is ideal or complete but I'd like to see if we can back port this fix to 1.6.x because we will still be relying on 1.6.x for some time and this is causing problems for us. Notably I'm not sure how to properly handle the nudgeNeeded issue. If I take it out then seeking seems to work fine for me but I'm not sure how to reproduce the other conditions that require this nudge.

@joeyparrish
Copy link
Member

The nudge was required on older versions of Chromium. They have since fixed the bug on their end, so we got rid of the nudge in Shaka v2. Let me discuss with the team. It may be cleaner to have you completely remove the nudge in a separate PR first.

@joeyparrish joeyparrish self-assigned this Jun 30, 2016
*/
shaka.media.SegmentIndex.prototype.findBefore = function(time) {
var i = shaka.media.SegmentReference.find(this.references, time);
return i <= 0 ? null : this.references[i - 1];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please write this conditional in the same style as the one above in find(). That will make it easier to compare.

@joeyparrish
Copy link
Member

Can you rebase on top of the other PR and resolve conflicts?

Sanborn Hilland added 2 commits June 30, 2016 19:28
As per issue shaka-project#330, manifests are only required to be approx.
correct with respect to their description of the media segments.
In order to avoid stalling when seeking through content like this,
fetch the chunk prior to the one that supposedly contains the
current time.

This is an attempt to apply a similar fix to Ia7bb74d0120.
@sanbornhilland sanbornhilland force-pushed the feature/handleManifestChunkDiscrepancies branch from abe23b3 to 5229e05 Compare June 30, 2016 23:33
@joeyparrish joeyparrish merged commit 40c4baa into shaka-project:v1.6.x Jul 1, 2016
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants