Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project/src/MakeCall/MakeCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export default class MakeCall extends React.Component {
});

this.deviceManager = await this.callClient.getDeviceManager();
window.deviceManager = this.deviceManager;
const permissions = await this.deviceManager.askDevicePermission({ audio: true, video: true });
this.setState({permissions: permissions});

Expand All @@ -154,9 +155,8 @@ export default class MakeCall extends React.Component {
this.callAgent = this.state.isTeamsUser ?
await this.callClient.createTeamsCallAgent(tokenCredential) :
await this.callClient.createCallAgent(tokenCredential, { displayName: userDetails.displayName });

window.callAgent = this.callAgent;
window.videoStreamRenderer = VideoStreamRenderer;

this.callAgent.on('callsUpdated', e => {
console.log(`callsUpdated, added=${e.added}, removed=${e.removed}`);

Expand Down
Loading