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

BADGERS-245: [BREAKING] Remove windowType metadata #364

Draft
wants to merge 148 commits into
base: master
Choose a base branch
from

Conversation

eirikbjornr
Copy link
Contributor

@eirikbjornr eirikbjornr commented Jan 15, 2025

📺 What

Remove BigscreenPlayer's reliance on windowType metadata. We've chosen to change the time representation for BigscreenPlayer with this change.

🛠 How

  • Replace "video time" with providing the "presentation time" from the media element. Provide conversion functions to availability and media sample times.
  • Add TimeShiftDetector to detect a sliding seekable range and activate auto-resume
  • Converted MediaSources to TypeScript

TODO:

  • Write a decision record on the new time representation
  • Write a decision record on the time shift detector
  • Write a short decision record for not estimating availabilityStartTime for HLS
  • Document that CEHTML does not support timeshift/simulcast
  • Update documentation to reflect the new API
  • Add documentation of the new time representation

eirikbjornr and others added 30 commits November 6, 2024 15:20
Co-authored-by: matt-stephenson <[email protected]>
@eirikbjornr eirikbjornr added the semver major This PR is a semver major release label Jan 15, 2025
return liveSupport === LiveSupport.SEEKABLE || liveSupport === LiveSupport.RESTARTABLE
}

export function canSeek(liveSupport: LiveSupport, seekableRange: unknown): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could maybe remove some duplication here and have "canPauseAndSeek" & "supportsPauseAndSeek" since they are doing the same thing.

You could still export different function names so you keep canSeek and canPause for consumption.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good shout!

Luke-Chatburn
Luke-Chatburn previously approved these changes Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver major This PR is a semver major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants