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

Feat: add option for partially storing HLSVod Json #284

Merged
merged 2 commits into from
Aug 14, 2023

Conversation

Nfrederiksen
Copy link
Collaborator

This PR bumps hls-vodtolive version to 4.0.0 and supports the handling of the new option in it, by introducing a new engineOption partialStoreHLSVod

cacheAge = Date.now() - this._sessionState.cache.currentVod.ts;
}
if (cacheAge !== null && cacheAge > AGE_THRESH) {
if (playheadState.playheadRef > this.currentPlayheadRef) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A more reliable, less complicated way to know if there is a different vod in shared store, as playheadRef is only ever updated after a new vod has been set in store.

Copy link
Contributor

@birme birme left a comment

Choose a reason for hiding this comment

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

Looks good to me

@Nfrederiksen Nfrederiksen merged commit 4529999 into master Aug 14, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants