MCPcopy Create free account
hub / github.com/develop202/migu_video / getEncryptURL

Function getEncryptURL

utils/ddCalcuURL.js:88–96  ·  view source on GitHub ↗

* 获取加密url * @param {object} exports - wasm导出的内容 * @param {string} videoURL - 视频地址 * @returns {string} - 播放地址

(exports, videoURL)

Source from the content-addressed store, hash-verified

86 * @returns {string} - 播放地址
87 */
88function getEncryptURL(exports, videoURL) {
89 // 获得内存
90 const memory = exports.k
91 const memoryView = new Uint8Array(memory.buffer)
92
93 // 获取加密方法
94 const getEncrypt = exports.m
95 return encrypt(videoURL, memoryView, getEncrypt)
96}
97
98
99/**

Callers

nothing calls this directly

Calls 1

encryptFunction · 0.85

Tested by

no test coverage detected