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(utils): Export shaka.util.StreamUtils.meetsRestrictions #5100

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Edgeware AB <*@edgeware.tv>
Enson Choy <[email protected]>
Esteban Dosztal <[email protected]>
Fadomire <[email protected]>
Fernando Neira <[email protected]>
Gerardo Meola <[email protected]>
Gil Gonen <[email protected]>
Giorgio Gamberoni <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Duc Pham <[email protected]>
Enson Choy <[email protected]>
Esteban Dosztal <[email protected]>
Fadomire <[email protected]>
Fernando Neira <[email protected]>
François Beaufort <[email protected]>
Gerardo Meola <[email protected]>
Gil Gonen <[email protected]>
Expand Down
2 changes: 2 additions & 0 deletions lib/util/stream_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ goog.requireType('shaka.media.DrmEngine');

/**
* @summary A set of utility functions for dealing with Streams and Manifests.
* @export
*/
shaka.util.StreamUtils = class {
/**
Expand Down Expand Up @@ -321,6 +322,7 @@ shaka.util.StreamUtils = class {
* This is applied separately from user restrictions because the setting
* should not be easily replaced by the user's configuration.
* @return {boolean}
* @export
*/
static meetsRestrictions(variant, restrictions, maxHwRes) {
/** @type {function(number, number, number):boolean} */
Expand Down