Skip to content

Commit

Permalink
DRM: simplify some code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Dec 12, 2024
1 parent 4a79f08 commit 4410d6d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/main_thread/decrypt/find_key_system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -403,14 +403,7 @@ export default function getMediaKeySystemAccess(
cancelSignal: CancellationSignal,
): Promise<IFoundMediaKeySystemAccessEvent> {
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.<Object>}
*/
/** Array of set keySystems for this content. */
const keySystemsType: IKeySystemType[] = keySystemsConfigs.reduce(
(arr: IKeySystemType[], keySystemOptions) => {
const { EME_KEY_SYSTEMS } = config.getCurrent();
Expand Down

0 comments on commit 4410d6d

Please sign in to comment.