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: Stop Using Previous VOD to Set timeOffset #119

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

Nfrederiksen
Copy link
Collaborator

@Nfrederiksen Nfrederiksen commented Sep 13, 2023

PR will change the behavior of handling ProgramDateTime when loading one vod after another.

The previous behavior was to ignore the set this.timeOffset timestamp and, instead, have it timeOffset rather be the timestamp of the final segment in the previous vod. This might not always yield in real-time timestamps as it assumes that the time of loading matches the time on the timestamp on that final segment. This is not always the case and even when it does not align with the true real-time, and there is no way to adjust the PDT in order to sync up later.

By using this updated behavior, the timeOffset will no longer be influenced by the previous vod. It only uses the value it gets from the initialization, which could help syncing the PDT with real-time, assuming that the given timeOffset in the constructor is a more dependable one.

@Nfrederiksen Nfrederiksen changed the title Fix: When Loading Next VOD Reset the timeOffset Fix: Do Not Use Previous VOD to Set timeOffset Sep 13, 2023
@Nfrederiksen Nfrederiksen changed the title Fix: Do Not Use Previous VOD to Set timeOffset Fix: Stop Using Previous VOD to Set timeOffset Sep 13, 2023
@Nfrederiksen Nfrederiksen merged commit 1b97073 into master Sep 13, 2023
2 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