From 4410d6d701827057648e07c6defa054060123934 Mon Sep 17 00:00:00 2001 From: Paul Berberian Date: Thu, 12 Dec 2024 12:06:35 +0100 Subject: [PATCH] DRM: simplify some code documentation --- src/main_thread/decrypt/find_key_system.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/main_thread/decrypt/find_key_system.ts b/src/main_thread/decrypt/find_key_system.ts index 68e05500a6..bb98d7f135 100644 --- a/src/main_thread/decrypt/find_key_system.ts +++ b/src/main_thread/decrypt/find_key_system.ts @@ -81,9 +81,9 @@ interface IKeySystemType { * system. */ keyName: string | undefined; - /** keyType: keySystem type (e.g. "com.widevine.alpha") */ + /** KeySystem type (e.g. "com.widevine.alpha") */ keyType: string; - /** keySystem {Object}: the original keySystem object */ + /** The original keySystem object */ keySystemOptions: IKeySystemOption; } @@ -403,14 +403,7 @@ export default function getMediaKeySystemAccess( cancelSignal: CancellationSignal, ): Promise { log.info("DRM: Searching for compatible MediaKeySystemAccess"); - /** - * Array of set keySystems for this content. - * Each item of this array is an object containing the following keys: - * - keyName {string}: keySystem canonical name (e.g. "widevine") - * - keyType {string}: keySystem type (e.g. "com.widevine.alpha") - * - keySystem {Object}: the original keySystem object - * @type {Array.} - */ + /** Array of set keySystems for this content. */ const keySystemsType: IKeySystemType[] = keySystemsConfigs.reduce( (arr: IKeySystemType[], keySystemOptions) => { const { EME_KEY_SYSTEMS } = config.getCurrent();