INNER CODE UNIT · JavaScript
getPlayerHash
MorpheApp/morphe-patches · patches/src/main/resources/spoof/raw/yt.solver.wrapper.js:66
function getPlayerHash() {
return _playerCache.playerHash;
}
/**
* Check if the player with the given hash is already loaded and preprocessed.
*
* @param {string} playerHash - The hash to check
* @returns {boolean} True if the player is loaded and preprocessed
*/
function isPlayerReady(playerHash) {
return _playerCache.playerHash === playerHash && _playerCache.isPreprocessed;
}
/**
* Wrapped jsc() function that uses the cached player JS.
*
* Input format: