File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import P2PDominantSpeakerDetection from './modules/detection/P2PDominantSpeakerD
2626import VADAudioAnalyser , { IVADProcessor } from './modules/detection/VADAudioAnalyser' ;
2727import VADNoiseDetection from './modules/detection/VADNoiseDetection' ;
2828import VADTalkMutedDetection from './modules/detection/VADTalkMutedDetection' ;
29- import { E2EEncryption } from './modules/e2ee/E2EEncryption' ;
29+ import { E2EEncryption , IMediaEncryptionKeyInfo } from './modules/e2ee/E2EEncryption' ;
3030import E2ePing from './modules/e2eping/e2eping' ;
3131import Jvb121EventGenerator from './modules/event/Jvb121EventGenerator' ;
3232import FeatureFlags from './modules/flags/FeatureFlags' ;
@@ -4346,7 +4346,7 @@ export default class JitsiConference extends Listenable {
43464346 * @param {Number } [keyInfo.index] - the index of the encryption key.
43474347 * @returns {void }
43484348 */
4349- public setMediaEncryptionKey ( keyInfo : { encryptionKey ?: CryptoKey ; index ?: number ; } ) : void {
4349+ public setMediaEncryptionKey ( keyInfo : IMediaEncryptionKeyInfo ) : void {
43504350 this . _e2eEncryption . setEncryptionKey ( keyInfo ) ;
43514351 }
43524352
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ import { ExternallyManagedKeyHandler } from './ExternallyManagedKeyHandler';
66import { ManagedKeyHandler } from './ManagedKeyHandler' ;
77import { OlmAdapter } from './OlmAdapter' ;
88
9+
10+ export interface IMediaEncryptionKeyInfo {
11+ encryptionKey ?: CryptoKey ;
12+ index ?: number ;
13+ }
14+
915/**
1016 * This module integrates {@link KeyHandler} with {@link JitsiConference} in order to enable E2E encryption.
1117 */
@@ -71,12 +77,10 @@ export class E2EEncryption {
7177
7278 /**
7379 * Sets the key and index for End-to-End encryption.
74- *
75- * @param {CryptoKey } [keyInfo.encryptionKey] - encryption key.
76- * @param {Number } [keyInfo.index] - the index of the encryption key.
80+ * @param {IMediaEncryptionKeyInfo } [keyInfo]
7781 * @returns {void }
7882 */
79- setEncryptionKey ( keyInfo : { encryptionKey ?: CryptoKey ; index ?: number ; } ) : void {
83+ setEncryptionKey ( keyInfo : IMediaEncryptionKeyInfo ) : void {
8084 ( this . _keyHandler as ExternallyManagedKeyHandler ) . setKey ( keyInfo ) ;
8185 }
8286
You can’t perform that action at this time.
0 commit comments