Skip to content

Commit 69f34f0

Browse files
committed
Minor change
1 parent 0e7faa7 commit 69f34f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

demo/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ $(() => {
151151
enableQos: true,
152152
enableMediaReportLogging: true,
153153

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,
156156
};
157157

158158
const urlParams = new URLSearchParams(window.location.search);

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export interface WebPhoneOptions {
129129
enableTurnServers?: boolean;
130130
/** Max time in milliseconds to be considered when generating ice candidates
131131
*
132-
* default value `2000`
132+
* default value `1000`
133133
*/
134134
iceCheckingTimeout?: number;
135135
/** Policy used when generating ice candidates
@@ -355,7 +355,7 @@ export default class WebPhone {
355355
let iceServers: Array<RTCIceServer> = [];
356356
if (options.enableTurnServers) {
357357
iceServers = options.turnServers!.map((url) => ({ urls: url }));
358-
options.iceCheckingTimeout = options.iceCheckingTimeout || 2000;
358+
options.iceCheckingTimeout = options.iceCheckingTimeout || 1000;
359359
}
360360
iceServers = [
361361
...iceServers,
@@ -366,7 +366,7 @@ export default class WebPhone {
366366
];
367367

368368
const sessionDescriptionHandlerFactoryOptions = options.sessionDescriptionHandlerFactoryOptions || {
369-
iceGatheringTimeout: options.iceCheckingTimeout || 2000,
369+
iceGatheringTimeout: options.iceCheckingTimeout || 1000,
370370
enableDscp: options.enableDscp,
371371
peerConnectionConfiguration: {
372372
iceServers,

0 commit comments

Comments
 (0)