diff --git a/src/main_thread/decrypt/content_decryptor.ts b/src/main_thread/decrypt/content_decryptor.ts index e6ef8f3b85..3780383b03 100644 --- a/src/main_thread/decrypt/content_decryptor.ts +++ b/src/main_thread/decrypt/content_decryptor.ts @@ -15,7 +15,6 @@ */ import type { IMediaElement } from "../../compat/browser_compatibility_types"; -import { isSafariDesktop } from "../../compat/browser_detection"; import type { ICustomMediaKeys, ICustomMediaKeySystemAccess } from "../../compat/eme"; import eme, { getInitData } from "../../compat/eme"; import config from "../../config"; @@ -59,10 +58,6 @@ import { } from "./utils/key_id_comparison"; import type KeySessionRecord from "./utils/key_session_record"; -export interface IContext { - isDirectFile: boolean; -} - /** * Module communicating with the Content Decryption Module (or CDM) to be able * to decrypt contents. @@ -136,10 +131,6 @@ export default class ContentDecryptor extends EventEmitter( { initializationState: { type: "uninitialized", value: null }, diff --git a/src/main_thread/init/utils/initialize_content_decryption.ts b/src/main_thread/init/utils/initialize_content_decryption.ts index c08ea4cd4e..a4659946c0 100644 --- a/src/main_thread/init/utils/initialize_content_decryption.ts +++ b/src/main_thread/init/utils/initialize_content_decryption.ts @@ -10,7 +10,6 @@ import type { CancellationSignal } from "../../../utils/task_canceller"; import { ContentDecryptorState } from "../../decrypt"; import type IContentDecryptor from "../../decrypt"; import type { IProcessedProtectionData } from "../../decrypt"; -import type { IContext } from "../../decrypt/content_decryptor"; /** * Initialize content decryption capabilities on the given `HTMLMediaElement`. @@ -47,7 +46,6 @@ export default function initializeContentDecryption( }) => void; onCodecSupportUpdate?: () => void; }, - context: IContext, cancelSignal: CancellationSignal, ): { statusRef: IReadOnlySharedReference; @@ -84,7 +82,7 @@ export default function initializeContentDecryption( } log.debug("Init: Creating ContentDecryptor"); - const contentDecryptor = new ContentDecryptor(mediaElement, keySystems, context); + const contentDecryptor = new ContentDecryptor(mediaElement, keySystems); const onStateChange = (state: ContentDecryptorState) => { if (state > ContentDecryptorState.Initializing) {