File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,8 @@ $(() => {
151
151
enableQos : true ,
152
152
enableMediaReportLogging : true ,
153
153
154
- // previous default value is 500ms. Now it is 2000ms , so I comment it out
155
- // iceCheckingTimeout: 2000 ,
154
+ // previous default value is 500ms. Now it is 1000ms , so I comment it out
155
+ // iceCheckingTimeout: 1000 ,
156
156
} ;
157
157
158
158
const urlParams = new URLSearchParams ( window . location . search ) ;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export interface WebPhoneOptions {
129
129
enableTurnServers ?: boolean ;
130
130
/** Max time in milliseconds to be considered when generating ice candidates
131
131
*
132
- * default value `2000 `
132
+ * default value `1000 `
133
133
*/
134
134
iceCheckingTimeout ?: number ;
135
135
/** Policy used when generating ice candidates
@@ -355,7 +355,7 @@ export default class WebPhone {
355
355
let iceServers : Array < RTCIceServer > = [ ] ;
356
356
if ( options . enableTurnServers ) {
357
357
iceServers = options . turnServers ! . map ( ( url ) => ( { urls : url } ) ) ;
358
- options . iceCheckingTimeout = options . iceCheckingTimeout || 2000 ;
358
+ options . iceCheckingTimeout = options . iceCheckingTimeout || 1000 ;
359
359
}
360
360
iceServers = [
361
361
...iceServers ,
@@ -366,7 +366,7 @@ export default class WebPhone {
366
366
] ;
367
367
368
368
const sessionDescriptionHandlerFactoryOptions = options . sessionDescriptionHandlerFactoryOptions || {
369
- iceGatheringTimeout : options . iceCheckingTimeout || 2000 ,
369
+ iceGatheringTimeout : options . iceCheckingTimeout || 1000 ,
370
370
enableDscp : options . enableDscp ,
371
371
peerConnectionConfiguration : {
372
372
iceServers,
You can’t perform that action at this time.
0 commit comments