File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import Listenable from '../util/Listenable';
1212import $ from '../util/XMLParser' ;
1313
1414import XmppConnection from './XmppConnection' ;
15- import XMPP from './xmpp' ;
15+ import XMPP , { IXMPPOptions } from './xmpp' ;
1616
1717
1818const logger = getLogger ( 'modules/xmpp/moderator' ) ;
@@ -76,15 +76,17 @@ function createExpBackoffTimer(step: number): (reset?: boolean) => Optional<numb
7676export default class Moderator extends Listenable {
7777 private getNextTimeout : ( reset ?: boolean ) => Optional < number > ;
7878 private getNextErrorTimeout : ( reset ?: boolean ) => Optional < number > ;
79- // Todo: IXMPPOptions after xmpp pr merge
80- private options : any ;
79+ private options : IXMPPOptions ;
8180 private sipGatewayEnabled : boolean ;
8281 private xmpp : XMPP ;
8382 private connection : XmppConnection ;
8483 private targetJid : string ;
8584 private mode : string ;
8685 private focusUserJids : Set < string > ;
87- private conferenceRequestSent : boolean ;
86+ /**
87+ * @internal
88+ */
89+ conferenceRequestSent : boolean ;
8890 public targetUrl : string ;
8991
9092 /**
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ interface IDeploymentInfo {
8484interface IHostsConfig {
8585 anonymousdomain ?: string ;
8686 domain ?: string ;
87+ focus ?: string ;
8788 muc ?: string ;
8889}
8990
@@ -102,22 +103,37 @@ interface IP2PConfig {
102103 stunServers ?: Array < { urls : string ; } > ;
103104}
104105
106+ /**
107+ * Analytics configuration interface
108+ */
109+ interface IAnalyticsConfig {
110+ rtcstatsEnabled ?: boolean ;
111+ }
112+
105113/**
106114 * XMPP options interface
107115 */
108116export interface IXMPPOptions {
117+ analytics ?: IAnalyticsConfig ;
109118 bosh ?: string ;
119+ conferenceRequestUrl ?: string ;
110120 deploymentInfo ?: IDeploymentInfo ;
111121 disableBeforeUnloadHandlers ?: boolean ;
112122 disableRtx ?: boolean ;
113123 enableOpusRed ?: boolean ;
114124 enableRemb ?: boolean ;
115125 enableTcc ?: boolean ;
116126 enableWebsocketResume ?: boolean ;
127+ focusUserJid ?: string ;
117128 hosts ?: IHostsConfig ;
129+ iAmRecorder ?: boolean ;
130+ iAmSipGateway ?: boolean ;
118131 p2p ?: IP2PConfig ;
119132 p2pStunServers ?: Array < { urls : string ; } > ;
133+ preferVisitor ?: boolean ;
120134 serviceUrl ?: string ;
135+ startAudioMuted ?: boolean ;
136+ startVideoMuted ?: boolean ;
121137 testing ?: ITestingConfig ;
122138 websocketKeepAlive ?: number ;
123139 websocketKeepAliveUrl ?: string ;
You can’t perform that action at this time.
0 commit comments