Skip to content

Commit

Permalink
fix: pass ice server config
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed May 17, 2024
1 parent 40f7c7f commit e8b7018
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/hms-video-store/src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ export class HMSSdk implements HMSInterface {
{ name: config.userName, metaData: config.metaData! },
config.initEndpoint!,
config.autoVideoSubscribe,
config.iceServers,
);
HMSLogger.d(this.TAG, `✅ Joined room ${roomId}`);
this.analyticsTimer.start(TimedEvent.PEER_LIST);
Expand Down
3 changes: 2 additions & 1 deletion packages/hms-video-store/src/transport/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,12 @@ export default class HMSTransport {
customData: { name: string; metaData: string },
initEndpoint: string,
autoSubscribeVideo = false,
iceServers?: HMSICEServer[],
): Promise<void> {
HMSLogger.d(TAG, 'join: started ⏰');
try {
if (!this.signal.isConnected || !this.initConfig) {
await this.connect(authToken, initEndpoint, peerId, customData, autoSubscribeVideo);
await this.connect(authToken, initEndpoint, peerId, customData, autoSubscribeVideo, iceServers);
}

this.validateNotDisconnected('connect');
Expand Down

0 comments on commit e8b7018

Please sign in to comment.