Skip to content

Commit a9554cf

Browse files
authored
Update manage-video-web.md
1 parent f5c2c02 commit a9554cf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

articles/communication-services/how-tos/calling-sdk/includes/manage-video/manage-video-web.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,3 +455,33 @@ You can update `scalingMode` by invoking the `updateScalingMode` method:
455455
```js
456456
view.updateScalingMode('Crop');
457457
```
458+
459+
## Limitations
460+
### Only one camera video stream can be sent per Call Client
461+
- Currently, only one camera stream is supported to be sent per Call Client.
462+
- So to acheive sending video streams from two different cameras from a single desktop browser tab/app, in the same call, you can use the following code snippet:
463+
[!INCLUDE [Public Preview Disclaimer](../../../../includes/public-preview-include.md)]
464+
This is supported as part of version 1.17.1-beta.1+.
465+
```js
466+
// Create your first CallAgent with identity A
467+
const callClient1 = new CallClient();
468+
const callAgent1 = await callClient1.createCallAgent(tokenCredentialA);
469+
const deviceManager1 = await callClient1.getDeviceManager();
470+
471+
// Create your second CallAgent with identity B
472+
const callClient2 = new CallClient();
473+
const callAgent2 = await callClient2.createCallAgent(tokenCredentialB);
474+
const deviceManager2 = await callClient2.getDeviceManager();
475+
476+
// Join the call with your first CallAgent
477+
const camera1 = await deviceManager1.getCameras()[0];
478+
const callObj1 = callAgent1.join({ groupId:123’}, { videoOptions: { localVideoStreams: [new LocalVideoStream(camera1)] } });
479+
480+
// Join the same call with your second CallAgent
481+
const camera2 = (await deviceManager2.getCameras()).filter((camera) => { return camera !== camera1 })[0];
482+
const callObj2 = callAgent2.join({ groupId: '123' }, { videoOptions: { localVideoStreams: [new LocalVideoStream(camera2)] } });
483+
484+
//Mute the microphone and speakers of your second CallAgent’s Call, so that there is no echos/noises.
485+
await callObj2.muteIncomingAudio();
486+
await callObj2.mute();
487+
```

0 commit comments

Comments
 (0)