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 adaptation set criteria factory configuration #7886

Merged

Conversation

gkatsev
Copy link
Contributor

@gkatsev gkatsev commented Jan 13, 2025

This exports AdaptationSet, and AdaptationSetCriteria to enable an adaptationSetCriteriaFactory method to allow for shaka users to provide their own implementation of a class that implements AdaptationSetCriteria.

Fixes #7768

@avelad avelad changed the title feat: add adapation set criteria factory configuration feat: Add adapation set criteria factory configuration Jan 13, 2025
@avelad avelad added type: enhancement New feature or request priority: P3 Useful but not urgent labels Jan 13, 2025
@avelad avelad added this to the v4.13 milestone Jan 13, 2025
@gkatsev gkatsev force-pushed the preference-based-criteria-factory branch from a801891 to 858c2af Compare January 13, 2025 15:54
goog.requireType('shaka.config.CodecSwitchingStrategy');


/**
* @implements {shaka.media.AdaptationSetCriteria}
* @final
* @export
Copy link
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Closure was complaining about it. Not exactly sure why, though. I would've expected it to work without exporting this one.

Let me try again and report back.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, seems like it's ok without again. Not sure exactly what was up then. Removing the exports.

@@ -17,51 +17,33 @@ goog.require('shaka.util.LanguageUtils');
/**
* @implements {shaka.media.AdaptationSetCriteria}
* @final
* @export
Copy link
Member

Choose a reason for hiding this comment

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

Technically I think it is not necessary to export it because it is the default solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, yeah, let me double-check if it's still needed. Added it for the same reason as example-based-criteria.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@shaka-bot
Copy link
Collaborator

shaka-bot commented Jan 13, 2025

Incremental code coverage: 87.39%

@avelad
Copy link
Member

avelad commented Jan 13, 2025

@shaka-bot test

@shaka-bot
Copy link
Collaborator

@avelad: Lab tests started with arguments:

  • pr=7886

@tykus160 tykus160 changed the title feat: Add adapation set criteria factory configuration feat: Add adaptation set criteria factory configuration Jan 13, 2025
@avelad avelad merged commit 6e4bfdf into shaka-project:main Jan 13, 2025
35 checks passed
@gkatsev gkatsev deleted the preference-based-criteria-factory branch January 13, 2025 19:40
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: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

custom preference based criteria
4 participants