diff --git a/lib/util/periods.js b/lib/util/periods.js index 67ef5f95e6..dd54ad0df1 100644 --- a/lib/util/periods.js +++ b/lib/util/periods.js @@ -24,6 +24,7 @@ goog.require('shaka.util.MimeUtils'); * * @implements {shaka.util.IReleasable} * @final + * @export */ shaka.util.PeriodCombiner = class { /** */ @@ -72,12 +73,20 @@ shaka.util.PeriodCombiner = class { this.variants_ = []; } - /** @return {!Array.} */ + /** + * @return {!Array.} + * + * @export + */ getVariants() { return this.variants_; } - /** @return {!Array.} */ + /** + * @return {!Array.} + * + * @export + */ getTextStreams() { // Return a copy of the array because makeTextStreamsForClosedCaptions // may make changes to the contents of the array. Those changes should not @@ -85,7 +94,11 @@ shaka.util.PeriodCombiner = class { return this.textStreams_.slice(); } - /** @return {!Array.} */ + /** + * @return {!Array.} + * + * @export + */ getImageStreams() { return this.imageStreams_; } @@ -94,6 +107,8 @@ shaka.util.PeriodCombiner = class { * @param {!Array.} periods * @param {boolean} isDynamic * @return {!Promise} + * + * @export */ async combinePeriods(periods, isDynamic) { const ContentType = shaka.util.ManifestParserUtils.ContentType; @@ -1638,6 +1653,8 @@ shaka.util.PeriodCombiner = class { * The text streams from one Period. * @property {!Array.} imageStreams * The image streams from one Period. + * + * @export */ shaka.util.PeriodCombiner.Period;