Skip to content

Commit

Permalink
fix: clear track states
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Aug 1, 2024
1 parent 750b68c commit 8e0dd7d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion examples/prebuilt-react-integration/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,16 @@ export default function App() {
return <Diagnostics />;
}

return <HMSPrebuilt roomCode={roomCode} />;
return (
<HMSPrebuilt
roomCode={roomCode}
options={{
endpoints: {
tokenByRoomCode: 'https://auth-nonprod.100ms.live/v2/token',
roomLayout: 'https://api-nonprod.100ms.live/v2/layouts/ui',
init: 'https://qa-in2-ipv6.100ms.live/init',
},
}}
/>
);
}
1 change: 1 addition & 0 deletions packages/hms-video-store/src/transport/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ export default class HMSTransport {
}
console.log('creating peer connections');
this.createPeerConnections();
this.trackStates.clear();
await this.negotiateOnFirstPublish();
const streamMap = new Map<string, HMSLocalStream>();
if (localPeer.audioTrack) {
Expand Down

0 comments on commit 8e0dd7d

Please sign in to comment.