MCPcopy Create free account
hub / github.com/DevLARLEY/PlayreadyProxy2 / saveRemoteCDM

Method saveRemoteCDM

utils.js:171–177  ·  view source on GitHub ↗
(name, obj)

Source from the content-addressed store, hash-verified

169
170export class RemoteCDMManager {
171 static async saveRemoteCDM(name, obj) {
172 const result = await AsyncLocalStorage.getStorage(['remote_cdms']);
173 const array = result.remote_cdms === undefined ? [] : result.remote_cdms;
174 array.push(name);
175 await AsyncLocalStorage.setStorage({ remote_cdms: array });
176 await AsyncLocalStorage.setStorage({ [name]: obj });
177 }
178
179 static async loadRemoteCDM(name) {
180 const result = await AsyncLocalStorage.getStorage([name]);

Callers 1

loadRemoteCDMMethod · 0.80

Calls 2

getStorageMethod · 0.80
setStorageMethod · 0.80

Tested by

no test coverage detected