()
| 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"]); |
nothing calls this directly
no test coverage detected