Files
shaka-player/externs/network_information.js
T
Vincent Valot bbf228c076 fix: prevent memory leak in SimpleAbrManager while destroying (#5149)
SimpleAbrManager was not properly destroyed after a call to
player.destroy, leading to SimpleAbrManager instances being kept in
memory.

This PR aims to resolve it :)
2023-04-14 15:18:04 -07:00

29 lines
567 B
JavaScript

/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Externs for NetworkInformation which were missing in the
* Closure compiler.
*
* @externs
*/
/** @type {boolean} */
NetworkInformation.prototype.saveData;
/**
* @param {string} type
* @param {Function} listener
*/
NetworkInformation.prototype.addEventListener = function(type, listener) {};
/**
* @param {string} type
* @param {Function} listener
*/
NetworkInformation.prototype.removeEventListener = function(type, listener) {};