@@ -58,17 +58,17 @@ The text boxes are used to enter the Teams user IDs planning to call and add in
58
58
Hang Up
59
59
</button >
60
60
</div >
61
- <script src =" ./client .js" ></script >
61
+ <script src =" ./main .js" ></script >
62
62
</body >
63
63
</html >
64
64
```
65
65
66
66
Replace content of client.js file with following snippet.
67
67
68
68
``` javascript
69
- import { CallClient } from " @azure/communication-calling" ;
70
- import { Features } from " @azure/communication-calling " ;
71
- import { AzureCommunicationTokenCredential } from ' @azure/communication-common ' ;
69
+ const { CallClient , Features } = require ( ' @azure/communication-calling' ) ;
70
+ const { AzureCommunicationTokenCredential } = require ( ' @azure/communication-common ' ) ;
71
+ const { AzureLogger , setLogLevel } = require ( " @azure/logger " ) ;
72
72
73
73
let call;
74
74
let callAgent;
@@ -89,7 +89,7 @@ init();
89
89
hangUpButton .addEventListener (" click" , async () => {
90
90
await call .hangUp ();
91
91
hangUpButton .disabled = true ;
92
- teamsMeetingJoinButton .disabled = false ;
92
+ placeInteropGroupCallButton .disabled = false ;
93
93
callStateElement .innerText = ' -' ;
94
94
});
95
95
@@ -102,7 +102,7 @@ placeInteropGroupCallButton.addEventListener("click", () => {
102
102
const participants = teamsIdsInput .value .split (' ,' ).map (id => {
103
103
const participantId = id .replace (' ' , ' ' );
104
104
return {
105
- microsoftTeamsUserId: ` 8:orgid: ${ participantId} `
105
+ microsoftTeamsUserId: ` ${ participantId} `
106
106
};
107
107
})
108
108
@@ -145,7 +145,7 @@ In results get the "id" field.
145
145
Run the following command to bundle your application host on a local webserver:
146
146
147
147
``` console
148
- npx webpack-dev-server --entry ./client .js --output bundle.js --debug --devtool inline-source-map
148
+ npx webpack serve --config webpack.config .js
149
149
```
150
150
151
151
Open your browser and navigate to http://localhost:8080/ . You should see the following screen:
0 commit comments