mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
Add missing private annotations
Caught by a newer compiler/linter that we have not been able to fully adopt yet. Change-Id: If25c7132f33d5544533542283c42a5ac7f39a552
This commit is contained in:
@@ -38,9 +38,9 @@ shaka.media.AdaptationSet = class {
|
||||
* adaptation set.
|
||||
*/
|
||||
constructor(root, candidates) {
|
||||
/** @type {shaka.extern.Variant} */
|
||||
/** @private {shaka.extern.Variant} */
|
||||
this.root_ = root;
|
||||
/** @type {!Set.<shaka.extern.Variant>} */
|
||||
/** @private {!Set.<shaka.extern.Variant>} */
|
||||
this.variants_ = new Set([root]);
|
||||
|
||||
// Try to add all the candidates. If they cannot be added (because they
|
||||
|
||||
@@ -158,6 +158,7 @@ shaka.media.PreferenceBasedCriteria = class {
|
||||
* @param {!Array.<shaka.extern.Variant>} variants
|
||||
* @param {string} preferredLanguage
|
||||
* @return {!Array.<shaka.extern.Variant>}
|
||||
* @private
|
||||
*/
|
||||
static filterByLanguage_(variants, preferredLanguage) {
|
||||
const LanguageUtils = shaka.util.LanguageUtils;
|
||||
|
||||
@@ -1631,6 +1631,7 @@ shaka.media.DrmEngine.prototype.pollExpiration_ = function() {
|
||||
|
||||
/**
|
||||
* @return {boolean}
|
||||
* @private
|
||||
*/
|
||||
shaka.media.DrmEngine.prototype.areAllSessionsLoaded_ = function() {
|
||||
const metadatas = this.activeSessions_.values();
|
||||
|
||||
@@ -55,6 +55,7 @@ shaka.offline.SessionDeleter = class {
|
||||
* @param {!shaka.net.NetworkingEngine} netEngine
|
||||
* @param {shaka.offline.SessionDeleter.Bucket_} bucket
|
||||
* @return {!Promise.<!Array.<string>>} The sessions that were deleted
|
||||
* @private
|
||||
*/
|
||||
static async doDelete_(config, netEngine, bucket) {
|
||||
/** @type {!shaka.media.DrmEngine} */
|
||||
|
||||
@@ -379,6 +379,7 @@ shaka.offline.Storage.prototype.store_ = async function(
|
||||
*
|
||||
* @param {shaka.extern.Manifest} manifest
|
||||
* @param {!shaka.media.DrmEngine} drmEngine
|
||||
* @private
|
||||
*/
|
||||
shaka.offline.Storage.prototype.filterManifest_ = function(
|
||||
manifest, drmEngine) {
|
||||
@@ -617,6 +618,7 @@ shaka.offline.Storage.prototype.removeEmeSessions = function() {
|
||||
|
||||
/**
|
||||
* @return {!Promise.<boolean>}
|
||||
* @private
|
||||
*/
|
||||
shaka.offline.Storage.prototype.removeEmeSessions_ = function() {
|
||||
this.requireSupport_();
|
||||
|
||||
Reference in New Issue
Block a user