Skip to content

Commit

Permalink
feat(utils): Export shaka.util.StreamUtils.meetsRestrictions (#5100)
Browse files Browse the repository at this point in the history
Closes #5098
  • Loading branch information
fernandoneira authored Mar 17, 2023
1 parent 62eea57 commit 3543e57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
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

0 comments on commit 3543e57

Please sign in to comment.