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 Device API #8210

Draft
wants to merge 42 commits into
base: main
Choose a base branch
from
Draft

Conversation

tykus160
Copy link
Member

@tykus160 tykus160 commented Mar 4, 2025

The goal is to simplify and abstract feature logic detection. Currently lots of places depend on various calls to shaka.util.Platform and mainteinance of this is hard & not easy to read.

By introducing device API ideally rest of the player logic would look into device features instead of directly checking platform. Additionally we can more easily cache needed values, so we won't have to parse user agent several times anymore.

@tykus160 tykus160 added type: enhancement New feature or request priority: P1 Big impact or workaround impractical; resolve before feature release labels Mar 4, 2025
@avelad avelad added type: code health A code health issue priority: P3 Useful but not urgent and removed priority: P1 Big impact or workaround impractical; resolve before feature release labels Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: P3 Useful but not urgent type: code health A code health issue type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants