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

Method removeSelectedRemoteCDM

utils.js:215–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

213 }
214
215 static async removeSelectedRemoteCDM() {
216 const selected_remote_cdm_name = await RemoteCDMManager.getSelectedRemoteCDM();
217
218 const result = await AsyncLocalStorage.getStorage(['remote_cdms']);
219 const array = result.remote_cdms === undefined ? [] : result.remote_cdms;
220
221 const index = array.indexOf(selected_remote_cdm_name);
222 if (index > -1) {
223 array.splice(index, 1);
224 }
225
226 await AsyncLocalStorage.setStorage({ remote_cdms: array });
227 await AsyncLocalStorage.removeStorage([selected_remote_cdm_name]);
228 }
229
230 static async removeSelectedRemoteCDMKey() {
231 await AsyncLocalStorage.removeStorage(["selected_remote_cdm"]);

Callers

nothing calls this directly

Calls 4

getSelectedRemoteCDMMethod · 0.80
getStorageMethod · 0.80
setStorageMethod · 0.80
removeStorageMethod · 0.80

Tested by

no test coverage detected