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

fix(Prefetch): Use the same references time for evict and prefetchSegmentsByTime #7003

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

avelad
Copy link
Member

@avelad avelad commented Jul 8, 2024

Using different time bases can result in duplicate or unnecessary segments being downloaded in HLS LL

@avelad avelad added type: bug Something isn't working correctly priority: P1 Big impact or workaround impractical; resolve before feature release labels Jul 8, 2024
@avelad avelad added this to the v4.11 milestone Jul 8, 2024
@avelad avelad requested a review from theodab July 8, 2024 15:18
@@ -1400,7 +1400,7 @@ shaka.media.StreamingEngine = class {

if (mediaState.segmentPrefetch && mediaState.segmentIterator &&
!this.audioPrefetchMap_.has(mediaState.stream)) {
mediaState.segmentPrefetch.evict(presentationTime);
Copy link
Contributor

Choose a reason for hiding this comment

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

At first, I thought this would be needed for an instant switching but since this specifically checks that the stream isn't in the audioPrefetchMap, and we have an evict(prefentationTime) elsewhere, 👍🏻

@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@avelad avelad merged commit 9fcaf4d into shaka-project:main Jul 8, 2024
12 of 19 checks passed
@avelad avelad deleted the prefetch-ll branch July 9, 2024 06:35
avelad added a commit that referenced this pull request Jul 10, 2024
…mentsByTime (#7003)

Using different time bases can result in duplicate or unnecessary
segments being downloaded in HLS LL
avelad added a commit that referenced this pull request Jul 10, 2024
…mentsByTime (#7003)

Using different time bases can result in duplicate or unnecessary
segments being downloaded in HLS LL
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Sep 6, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Sep 6, 2024
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
Development

Successfully merging this pull request may close these issues.

4 participants